diff options
author | lloyd <[email protected]> | 2008-11-11 20:58:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 20:58:37 +0000 |
commit | 8879a51da7c3b93e27439122cea5d5aa81ae38c3 (patch) | |
tree | b1faa753266d4a762fc38252df35a2435b757b92 /src/timer/timer.h | |
parent | 6eff33ae263109ccbbeb32bd0ffb25c77140cc45 (diff) |
Move utils/{timer,mutex} to toplevel
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 |