Skip to content

Commit

Permalink
Fix now_ns() (twitter#198)
Browse files Browse the repository at this point in the history
- _gettime takes duration_type as parameter not clockid_t
  • Loading branch information
michalbiesek authored and Yao Yue committed Jul 11, 2019
1 parent da240e5 commit 7107988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time/cc_timer_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7107988

Please sign in to comment.