aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-11-08 19:15:36 +0000
committerlloyd <[email protected]>2013-11-08 19:15:36 +0000
commit79400f7b5add9dd0218ff3a127356add4a1bebca (patch)
tree372b8eaaee9c370d58500ccb2b65ad589896ec14
parent3c458d2cc54f4e203eb43e545d995fd4988874de (diff)
Add more possible clock types
-rw-r--r--src/entropy/hres_timer/hres_timer.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/entropy/hres_timer/hres_timer.cpp b/src/entropy/hres_timer/hres_timer.cpp
index c7a8404cf..7295a119b 100644
--- a/src/entropy/hres_timer/hres_timer.cpp
+++ b/src/entropy/hres_timer/hres_timer.cpp
@@ -43,14 +43,26 @@ void High_Resolution_Timestamp::poll(Entropy_Accumulator& accum)
CLOCK_POLL(CLOCK_REALTIME);
#endif
+#if defined(CLOCK_REALTIME_COARSE)
+ CLOCK_POLL(CLOCK_REALTIME_COARSE);
+#endif
+
#if defined(CLOCK_MONOTONIC)
CLOCK_POLL(CLOCK_MONOTONIC);
#endif
+#if defined(CLOCK_MONOTONIC_COARSE)
+ CLOCK_POLL(CLOCK_MONOTONIC_COARSE);
+#endif
+
#if defined(CLOCK_MONOTONIC_RAW)
CLOCK_POLL(CLOCK_MONOTONIC_RAW);
#endif
+#if defined(CLOCK_BOOTTIME)
+ CLOCK_POLL(CLOCK_BOOTTIME);
+#endif
+
#if defined(CLOCK_PROCESS_CPUTIME_ID)
CLOCK_POLL(CLOCK_PROCESS_CPUTIME_ID);
#endif