diff options
Diffstat (limited to 'src/timer/timer.h')
-rw-r--r-- | src/timer/timer.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/timer/timer.h b/src/timer/timer.h new file mode 100644 index 000000000..5ad2cfbea --- /dev/null +++ b/src/timer/timer.h @@ -0,0 +1,30 @@ +/************************************************* +* 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); + u32bit fast_poll(byte[], u32bit); + + virtual ~Timer() {} + protected: + static u64bit combine_timers(u32bit, u32bit, u32bit); + }; + +} + +#endif |