UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
timemanager.h
Go to the documentation of this file.
1 #ifndef UGDK_TIME_TIMEMANAGER_H_
2 #define UGDK_TIME_TIMEMANAGER_H_
3 
4 #include <ugdk/base/types.h>
5 
6 namespace ugdk {
7 namespace time {
8 
9 class TimeManager {
10  public:
11  TimeManager();
13 
15  void Update();
16 
17  /* @return Time elapsed since initialization, in milliseconds */
19 
20  // Devolve quanto tempo se passou desde a iteracao anterior, em milisegundos
21  /* @return Time elapsed since last frame, in milliseconds */
23 
24  // Devolve quanto tempo se passou desde um ponto no tempo
26 
27  private:
28  uint32 initial_time_, current_time_, last_update_;
29 };
30 
31 } // namespace time
32 } // namespace ugdk
33 
34 #endif // HORUSEYE_FRAMEWORK_TIMEHANDLER_H_