From 6199d648f52d8a2f56d36f195ff99d2d6c7b6d99 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sun, 3 Feb 2019 18:36:22 -0500 Subject: [PATCH] Don't use CLOCK_REALTIME_COARSE The resolution only seems to be around 4ms. --- endlessh.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/endlessh.c b/endlessh.c index 2ee5300..c365b1c 100644 --- a/endlessh.c +++ b/endlessh.c @@ -28,11 +28,7 @@ static long long uepoch(void) { struct timespec tv; -#ifdef __linux__ - clock_gettime(CLOCK_REALTIME_COARSE, &tv); -#else clock_gettime(CLOCK_REALTIME, &tv); -#endif return tv.tv_sec * 1000ULL + tv.tv_nsec / 1000000ULL; }