diff --git a/source/lib/timer.cpp b/source/lib/timer.cpp index 59653edfcf..e6367ae6c5 100644 --- a/source/lib/timer.cpp +++ b/source/lib/timer.cpp @@ -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