diff options
Diffstat (limited to 'src/timer/timer.h')
-rw-r--r-- | src/timer/timer.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/timer/timer.h b/src/timer/timer.h index 9aa95f261..dfa04ee3a 100644 --- a/src/timer/timer.h +++ b/src/timer/timer.h @@ -1,7 +1,7 @@ -/************************************************* -* Timestamp Functions Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/** +* Timestamp Functions Header File +* (C) 1999-2008 Jack Lloyd +*/ #ifndef BOTAN_TIMERS_H__ #define BOTAN_TIMERS_H__ @@ -10,23 +10,31 @@ namespace Botan { -/************************************************* -* Timer Interface * -*************************************************/ +/** +* Timer Interface +*/ class BOTAN_DLL Timer : public EntropySource { public: - virtual u64bit clock() const; + virtual u64bit clock() const = 0; u32bit slow_poll(byte[], u32bit); u32bit fast_poll(byte[], u32bit); - std::string name() const { return "ANSI clock"; } - virtual ~Timer() {} protected: static u64bit combine_timers(u32bit, u32bit, u32bit); }; +/** +* ANSI Clock Timer +*/ +class BOTAN_DLL ANSI_Clock_Timer : public Timer + { + public: + std::string name() const { return "ANSI clock"; } + u64bit clock() const; + }; + } #endif |