mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:55:07 -05:00
local: add support for clock_gettime()
Use clock_gettime() to read the system clock in nanosecond resolution.
This commit is contained in:
3
local.h
3
local.h
@@ -31,8 +31,7 @@
|
||||
|
||||
#include "sysincl.h"
|
||||
|
||||
/* Read the system clock. This is analogous to gettimeofday(),
|
||||
but with the timezone information ignored */
|
||||
/* Read the system clock */
|
||||
extern void LCL_ReadRawTime(struct timespec *ts);
|
||||
|
||||
/* Read the system clock, corrected according to all accumulated
|
||||
|
||||
Reference in New Issue
Block a user