mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-22 21:52:43 +00:00
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:
1 file changed
+1
-3
+1
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user