Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Timer.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_CORE_TIMER_H__
13 #define __KOME_CORE_TIMER_H__
14 
15 
16 #include <ctime>
17 
18 
19 namespace kome {
20  namespace core {
21 
26  class CORE_TOOLKITS_CLASS Timer {
27  public:
32  Timer();
33 
38  virtual ~Timer();
39 
40  protected:
42  clock_t m_start;
43 
45  double m_total;
46 
48  bool m_stopped;
49 
50  public:
55  void reset();
56 
61  void start();
62 
68  double stop();
69 
75  double getTime();
76 
82  double getTotalTime();
83  };
84  }
85 }
86 
87 
88 #endif // __KOME_CORE_TIMER_H__
89 
double m_total
Definition: Timer.h:45
timer class
Definition: Timer.h:26
clock_t m_start
Definition: Timer.h:42
bool m_stopped
Definition: Timer.h:48