9 #ifndef _TurtleBrains_GameTimer_h_
10 #define _TurtleBrains_GameTimer_h_
12 #include "../core/tb_types.h"
53 GameTimer(
const Milliseconds& valueMilliseconds);
125 static float ToSeconds(
const Milliseconds& valueMilliseconds);
162 Milliseconds mMillisecondTimer;
163 static Milliseconds sMillisecondsPerStep;
GameTimer & operator=(const GameTimer &other)
static GameTimer Zero(void)
static Milliseconds GetMillisecondsPerStep(void)
float GetPercentageOf(const GameTimer &timeValue) const
static float GetSecondsPerStep(void)
const Milliseconds & GetRemainingTime(void) const
static GameTimer Infinity(void)
static void SetMillisecondsPerStep(const Milliseconds &millisecondsPerStep)
bool IncrementStep(const GameTimer &maximumValue=Infinity())
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
static float ToSeconds(const Milliseconds &valueMilliseconds)
static Milliseconds ToMilliseconds(const float &valueSeconds)
uint32_t uint32
Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1)...
Definition: tb_types.h:28
const Milliseconds & GetElapsedTime(void) const
tbCore::uint32 Milliseconds
Definition: tb_game_timer.h:31
This is the heart of TurtleBrains for game developers to create GameScenes and Entities to interact w...
Definition: tb_game_timer.h:25