#include <Timing.h>
Inherits Fling::Singleton< Timing >.
|
static Timing & | Get () |
|
| Singleton ()=default |
| Every singleton must have a default constructor so that explicit creation and destruction of them is maintained. More...
|
|
◆ GetDeltaTime()
float FLING_API Fling::Timing::GetDeltaTime |
( |
| ) |
const |
|
inline |
◆ GetFrameStartTime()
float FLING_API Fling::Timing::GetFrameStartTime |
( |
| ) |
const |
|
inline |
Get the time that that frame has started.
- Returns
- float GetFrameStartTime
◆ GetStartTime()
double FLING_API Fling::Timing::GetStartTime |
( |
| ) |
const |
|
inline |
Get the time that the application has started.
- Returns
- double GetStartTime
◆ GetTime()
double Fling::Timing::GetTime |
( |
| ) |
const |
Get the current time of the application (double)
- Returns
- double GetTime
◆ GetTimef()
float FLING_API Fling::Timing::GetTimef |
( |
| ) |
const |
|
inline |
Get the current time of the application (float)
- Returns
- float GetTimef
◆ GetTimeSinceStart()
float FLING_API Fling::Timing::GetTimeSinceStart |
( |
| ) |
const |
|
inline |
Get the time since that application has started (i.e.
time running)
- Returns
- float GetTimeSinceStart
◆ Init()
void Fling::Timing::Init |
( |
| ) |
|
|
overridevirtual |
◆ Update()
void Fling::Timing::Update |
( |
| ) |
|
Update the time values of the timer.
Should be done at the beginning of every frame
◆ m_deltaTime
float Fling::Timing::m_deltaTime = 0.0f |
|
private |
◆ m_frameStartTimef
float Fling::Timing::m_frameStartTimef = 0.0f |
|
private |
◆ m_lastFrameStartTime
double Fling::Timing::m_lastFrameStartTime = 0.0 |
|
private |
◆ m_startTime
double Fling::Timing::m_startTime = 0.0 |
|
private |
The time that the program started.
The documentation for this class was generated from the following files: