aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/timer/timer_base/timers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/timer/timer_base/timers.h')
-rw-r--r--src/utils/timer/timer_base/timers.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/utils/timer/timer_base/timers.h b/src/utils/timer/timer_base/timers.h
new file mode 100644
index 000000000..253f71f6b
--- /dev/null
+++ b/src/utils/timer/timer_base/timers.h
@@ -0,0 +1,29 @@
+/*************************************************
+* Timestamp Functions Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_TIMERS_H__
+#define BOTAN_TIMERS_H__
+
+#include <botan/rng.h>
+
+namespace Botan {
+
+/*************************************************
+* Timer Interface *
+*************************************************/
+class BOTAN_DLL Timer : public EntropySource
+ {
+ public:
+ virtual u64bit clock() const;
+ u32bit slow_poll(byte[], u32bit);
+
+ virtual ~Timer() {}
+ protected:
+ static u64bit combine_timers(u32bit, u32bit, u32bit);
+ };
+
+}
+
+#endif