SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Timer.h
Go to the documentation of this file.
1 
7 #ifndef __SCV_TIMER_H__
8 #define __SCV_TIMER_H__
9 
10 namespace scv {
11 
16 class Timer {
17 public:
18 
19  Timer(void);
20 
21  void start(void);
22  void pause(void);
23  void unpause(void);
24  void stop(void);
25 
29  int getSeconds(void);
30 
34  int getMilliseconds(void);
35 
39  bool isRunning(void) const;
40 
41 private:
42  int _startTime, _currTime;
43  bool _running;
44 };
45 
46 } // namespace scv
47 
48 #endif // __SCV_TIMER_H__