Pol  Revision:cb584c9
poltimer.h
Go to the documentation of this file.
1 
7 #ifndef POLTIMER_H
8 #define POLTIMER_H
9 
10 #include "polclock.h"
11 #include <iosfwd>
12 namespace Pol
13 {
14 namespace Core
15 {
16 class PolTimer
17 {
18 public:
19  PolTimer() : start( polclock() ) {}
20  void printOn( std::ostream& os ) { os << "elapsed: " << polclock() - start << " polclocks\n"; }
21 
22 private:
24 };
25 }
26 }
27 #endif
polclock_t polclock()
Definition: polclock.cpp:72
void printOn(std::ostream &os)
Definition: poltimer.h:20
int polclock_t
Definition: polclock.h:26
polclock_t start
Definition: poltimer.h:23
Definition: berror.cpp:12