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 */
TurtleBrains::System::Timer::Timer::Update
void Update(void)
TurtleBrains::System::Timer::Timer
Definition:
tb_system_timer.hpp:47
TurtleBrains
Here is some information about the primary namespace.
Definition:
tb_application_dialog.hpp:21
TurtleBrains::System::Timer::Timer::Timer
Timer(void)
TurtleBrains::System::Timer::Timer::Reset
void Reset(void)
TurtleBrains::System
Definition:
tb_system_timer.hpp:14
TurtleBrains::System::Timer::Timer::~Timer
~Timer(void)
TurtleBrains::System::Timer::Timer::GetDeltaTime
Seconds GetDeltaTime(void)
TurtleBrains::System::Timer::Timer::GetTotalTime
Seconds GetTotalTime(void)
source
turtle_brains
system
tb_system_timer.hpp
Generated on Sat May 21 2022 14:31:24 for TurtleBrains by
1.8.9.1