aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-06-21 11:31:45 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-06-21 11:31:45 -0700
commit7c8925fd2bf3834084106073c2592443bf5d6235 (patch)
tree48f08f68221ca2bdd3f61ffa9a98cb4cbb831c1b
parent0d65bc2213df608729b2b2ecc2599077d425db82 (diff)
downloadtermbaud-hjl/benchtests/wall-time.tar.gz
termbaud-hjl/benchtests/wall-time.tar.xz
termbaud-hjl/benchtests/wall-time.zip
Force to use clock_gettimehjl/benchtests/wall-time
-rw-r--r--benchtests/bench-timing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h
index 09f44865151..957752a783d 100644
--- a/benchtests/bench-timing.h
+++ b/benchtests/bench-timing.h
@@ -19,6 +19,10 @@
#include <hp-timing.h>
#include <stdint.h>
+/* Force to use clock_gettime. */
+#undef USE_CLOCK_GETTIME
+#define USE_CLOCK_GETTIME
+
#if HP_TIMING_AVAIL && !defined USE_CLOCK_GETTIME
# define GL(x) _##x
# define GLRO(x) _##x