UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
manager.h
Go to the documentation of this file.
1 #ifndef UGDK_TIME_MANAGER_H_
2 #define UGDK_TIME_MANAGER_H_
3 
4 #include <ugdk/structure/types.h>
5 
6 namespace ugdk {
7 namespace time {
8 
9 class Manager {
10  public:
11  Manager();
12  ~Manager() { }
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_
uint32_t uint32
Definition: types.h:14
~Manager()
Definition: manager.h:12
Definition: animation.h:11
Definition: manager.h:9
void Update()
Informs the Manager that a new frame started.
uint32 TimeSince(uint32 t0)