summaryrefslogtreecommitdiff
path: root/hrtimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'hrtimer.h')
-rw-r--r--hrtimer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hrtimer.h b/hrtimer.h
index 6bb83019..01c156ca 100644
--- a/hrtimer.h
+++ b/hrtimer.h
@@ -2,6 +2,9 @@
#define CRYPTOPP_HRTIMER_H
#include "config.h"
+#ifndef HIGHRES_TIMER_AVAILABLE
+#include <time.h>
+#endif
NAMESPACE_BEGIN(CryptoPP)
@@ -12,7 +15,6 @@ NAMESPACE_BEGIN(CryptoPP)
typedef word32 TimerWord;
#endif
#else
- #include <time.h>
typedef clock_t TimerWord;
#endif