ParMooN
 All Classes Functions Variables Friends Pages
timer.h
1 #ifndef TIMER
2 #define TIMER
3 
4 #include <time.h>
5 
6 class timer
7 {
8 private:
9  clock_t clk;
10  bool bEnabled;
11  bool bPaused;
12 
13  double t;
14 
15 public:
16  void start_timer();
17  void pause_timer();
18  void resume_timer();
19  void stop_timer();
20 
21  double get_time();
22 };
23 
24 #endif
Definition: timer.h:6