UGDK
0.5.0
Main Page
Namespaces
Classes
Files
File List
File Members
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 */
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_
ugdk::time::Manager::TimeElapsed
uint32 TimeElapsed()
types.h
ugdk::uint32
uint32_t uint32
Definition:
types.h:14
ugdk::time::Manager::~Manager
~Manager()
Definition:
manager.h:12
ugdk
Definition:
animation.h:11
ugdk::time::Manager
Definition:
manager.h:9
ugdk::time::Manager::Update
void Update()
Informs the Manager that a new frame started.
ugdk::time::Manager::Manager
Manager()
ugdk::time::Manager::TimeSince
uint32 TimeSince(uint32 t0)
ugdk::time::Manager::TimeDifference
uint32 TimeDifference()
modules
ugdk-core
include
ugdk
time
manager.h
Generated on Sun Dec 6 2015 00:40:24 for UGDK by
1.8.8