Commit 6c8ec365 authored by Sergio Ammirata's avatar Sergio Ammirata
Browse files

Use CLOCK_REALTIME in timestampNTP_RTC_u64 under windows. This fixes windows timing-mode=2

parent eaf68ffe
Pipeline #69479 passed with stages
in 1 minute and 3 seconds
......@@ -51,8 +51,6 @@ uint64_t timestampNTP_RTC_u64(void) {
timespec_t ts;
#if defined (__APPLE__)
clock_gettime_osx(CLOCK_REALTIME_OSX, &ts);
#elif defined _WIN32
clock_gettime(CLOCK_MONOTONIC, &ts);
#else
clock_gettime(CLOCK_REALTIME, &ts);
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment