Fix timer configuration: clock_gettime uses timespec, gettimeofday uses timeval.
This was SVN commit r7014.
This commit is contained in:
parent
ae58c456e5
commit
032a41add6
@ -52,9 +52,9 @@
|
|||||||
// timer values than their us / ns interface, via double [seconds].
|
// timer values than their us / ns interface, via double [seconds].
|
||||||
// they're also not guaranteed to be monotonic.
|
// they're also not guaranteed to be monotonic.
|
||||||
|
|
||||||
#if HAVE_GETTIMEOFDAY
|
#if HAVE_CLOCK_GETTIME
|
||||||
static struct timespec start;
|
static struct timespec start;
|
||||||
#elif HAVE_CLOCK_GETTIME
|
#elif HAVE_GETTIMEOFDAY
|
||||||
static struct timeval start;
|
static struct timeval start;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user