Author: jonnyjd Date: Thu Jun 11 15:33:51 2015 New Revision: 10003 URL: http://svn.gna.org/viewcvs/service-tech?rev=10003&view=rev Log: chloe3: benchmark: test for CLOCK_REALTIME directly
not sure why _POSIX_TIMERS is defined on OS X but CLOCK_REALTIME is not Modified: trunk/chloe3/benchmark/benchmark.cc Modified: trunk/chloe3/benchmark/benchmark.cc URL: http://svn.gna.org/viewcvs/service-tech/trunk/chloe3/benchmark/benchmark.cc?rev=10003&r1=10002&r2=10003&view=diff ============================================================================== --- trunk/chloe3/benchmark/benchmark.cc (original) +++ trunk/chloe3/benchmark/benchmark.cc Thu Jun 11 15:33:51 2015 @@ -32,7 +32,7 @@ #include <stdexcept> #include <limits> -#ifndef _POSIX_TIMERS +#ifndef CLOCK_REALTIME #include <sys/time.h> // gettimeofday() #endif #include <unistd.h> @@ -82,7 +82,7 @@ /* return current (hopefully monotonic and exact) time in seconds */ double get_time(void) { -#ifdef _POSIX_TIMERS +#ifdef CLOCK_REALTIME struct timespec ts; # ifdef CLOCK_MONOTONIC_RAW clock_gettime(CLOCK_MONOTONIC_RAW, &ts); -- You received this e-mail, because you subscribed the mailing list "service-tech-commits" which will forward you any e-mail addressed to service-tech-commits@gna.org. If you want to unsubscribe or make any changes to your subscription, please go to https://mail.gna.org/listinfo/service-tech-commits.