TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
tb_system_timer.hpp
1 
9 #ifndef TurtleBrains_SystemTimer_hpp
10 #define TurtleBrains_SystemTimer_hpp
11 
12 namespace TurtleBrains
13 {
14  namespace System
15  {
16 
17  namespace Timer
18  {
22  typedef double Seconds;
23 
27  void Reset(void);
28 
32  void Update(void);
33 
37  Seconds GetDeltaTime(void);
38 
42  Seconds GetTotalTime(void);
43 
47  class Timer
48  {
49  public:
53  Timer(void);
54 
58  ~Timer(void);
59 
63  void Reset(void);
64 
68  void Update(void);
69 
73  Seconds GetDeltaTime(void);
74 
78  Seconds GetTotalTime(void);
79 
80  private:
81  Seconds mStartTime;
82  Seconds mCurrentTime;
83  Seconds mDeltaTime;
84  };
85  };
86 
87  }; /* namespace System */
88 }; /* namespace TurtleBrains */
89 
90 namespace tbSystem = TurtleBrains::System;
91 
92 #endif /* TurtleBrains_SystemTimer_hpp */
Definition: tb_system_timer.hpp:47
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
Definition: tb_system_timer.hpp:14