1
0
forked from 0ad/0ad

Fix timer configuration: clock_gettime uses timespec, gettimeofday uses timeval.

This was SVN commit r7014.
This commit is contained in:
Simon Brenner 2009-07-18 01:55:26 +00:00
parent ae58c456e5
commit 032a41add6

View File

@ -52,9 +52,9 @@
// timer values than their us / ns interface, via double [seconds].
// they're also not guaranteed to be monotonic.
#if HAVE_GETTIMEOFDAY
#if HAVE_CLOCK_GETTIME
static struct timespec start;
#elif HAVE_CLOCK_GETTIME
#elif HAVE_GETTIMEOFDAY
static struct timeval start;
#endif