local: add support for clock_gettime()

Use clock_gettime() to read the system clock in nanosecond resolution.
This commit is contained in:
Miroslav Lichvar
2016-08-18 15:07:01 +02:00
parent cfe706f032
commit 8d89610ff6
4 changed files with 26 additions and 19 deletions

View File

@@ -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