UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
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
();
12
~TimeManager
() { }
13
15
void
Update
();
16
17
/* @return Time elapsed since initialization, in milliseconds */
18
uint32
TimeElapsed
();
19
20
// Devolve quanto tempo se passou desde a iteracao anterior, em milisegundos
21
/* @return Time elapsed since last frame, in milliseconds */
22
uint32
TimeDifference
();
23
24
// Devolve quanto tempo se passou desde um ponto no tempo
25
uint32
TimeSince
(
uint32
t0);
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_
src
ugdk
time
timemanager.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2