From 8879a51da7c3b93e27439122cea5d5aa81ae38c3 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 11 Nov 2008 20:58:37 +0000 Subject: Move utils/{timer,mutex} to toplevel --- src/timer/timer.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/timer/timer.h (limited to 'src/timer/timer.h') 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 + +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 -- cgit v1.2.3