#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::Timing::GetDeltaTime |
( |
| ) |
|
◆ GetFrameCount()
| int FLING_API Fling::Timing::GetFrameCount |
( |
| ) |
const |
|
inline |
Get fps count.
- Returns
- int GetFrameCount
◆ GetFrameStartTime()
| float FLING_API Fling::Timing::GetFrameStartTime |
( |
| ) |
const |
|
inline |
Get the time that that frame has started.
- Returns
- float GetFrameStartTime
◆ GetFrameTime()
| float FLING_API Fling::Timing::GetFrameTime |
( |
| ) |
const |
|
inline |
Get current frame time.
- Returns
- float GetFrameTime
◆ 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
◆ UpdateFps()
| void Fling::Timing::UpdateFps |
( |
| ) |
|
Updates current frame timer
◆ m_deltaTime
| float Fling::Timing::m_deltaTime = 1.0f / 60.0f |
|
private |
◆ m_fpsFrameCount
| int Fling::Timing::m_fpsFrameCount = 0 |
|
private |
◆ m_fpsFrameCountTemp
| int Fling::Timing::m_fpsFrameCountTemp = 0 |
|
private |
◆ m_fpsTimeElapsed
| float Fling::Timing::m_fpsTimeElapsed = 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: