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 2018-08-26 20:39:01 +00:00
parent a5cd4764aa
commit 730e4cfe82
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

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;