Remove the use of CLOCK_MONOTONIC_RAW.

The raw clock isn't subject to NTP adjustments. It may run less
accurately than the regular monotonic clock. I see no reason why raw
would be better for tox than the normal one.

This avoids one piece of OS-specific ifdef'd code.
This commit is contained in:
iphydf committed 2018-08-30 21:57:35 +00:00
1 parent a5cd4764aa
commit 730e4cfe82
1 file changed
+1 -3
+1 -3
View File
@@ -120,9 +120,7 @@ static uint64_t current_time_monotonic_default(void *user_data)
last_clock_mono = time;
#else
struct timespec clock_mono;
#if defined(__linux__) && defined(CLOCK_MONOTONIC_RAW)
clock_gettime(CLOCK_MONOTONIC_RAW, &clock_mono);
#elif defined(__APPLE__)
#if defined(__APPLE__)
clock_serv_t muhclock;
mach_timespec_t machtime;