diff --git a/library/platform_util.c b/library/platform_util.c index 2b48f4f6a5..d8d9708379 100644 --- a/library/platform_util.c +++ b/library/platform_util.c @@ -181,7 +181,7 @@ mbedtls_ms_time_t mbedtls_ms_time(void) struct timespec tv; mbedtls_ms_time_t current_ms; - ret = clock_gettime(CLOCK_REALTIME, &tv); + ret = clock_gettime(CLOCK_MONOTONIC, &tv); if (ret) { return time(NULL) * 1000; }