aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/timer/timer.h
blob: 5ad2cfbead1d0693f973aa1d5d98a732ae168672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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