From 7107988710a8aeb7ddeacd94d5952ba6f225edb3 Mon Sep 17 00:00:00 2001 From: michalbiesek <39981869+michalbiesek@users.noreply.github.com> Date: Thu, 11 Jul 2019 08:27:14 +0200 Subject: [PATCH] Fix now_ns() (#198) - _gettime takes duration_type as parameter not clockid_t --- src/time/cc_timer_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/cc_timer_linux.c b/src/time/cc_timer_linux.c index 29de5306b..a3f8ba820 100644 --- a/src/time/cc_timer_linux.c +++ b/src/time/cc_timer_linux.c @@ -172,7 +172,7 @@ _now_ns(void) { struct timespec now; - _gettime(&now, cid[DURATION_PRECISE]); + _gettime(&now, DURATION_PRECISE); return now.tv_sec * NSEC_PER_SEC + now.tv_nsec; }