LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
timer.h
1 #ifndef TIMER_H
2 #define TIMER_H
3 
5 
8 class Timer {
9 public:
10  Timer();
12  void Start();
14  void Stop();
16  void Pause();
18  void Unpause();
23  int Restart();
28  int Ticks() const;
30  bool Started() const;
32  bool Paused() const;
33 
34 private:
35  int mStartTicks, mPausedTicks;
36  bool mStarted, mPaused;
37 };
38 
39 #endif