#include <TimeManager.h>
◆ TimeManager() [1/3]
TimeManager::TimeManager |
( |
| ) |
|
|
privatedefault |
◆ TimeManager() [2/3]
◆ TimeManager() [3/3]
◆ ~TimeManager()
TimeManager::~TimeManager |
( |
| ) |
|
|
privatedefault |
◆ GetFrameCount()
static int TimeManager::GetFrameCount |
( |
| ) |
|
|
inlinestatic |
◆ GetFrameTime()
static float TimeManager::GetFrameTime |
( |
| ) |
|
|
inlinestatic |
Gets frame time.
- Returns
- The frame time. Calculated as a result of the current time minus a time marker dictated by FreezeTime.
◆ GetStartTime()
static float TimeManager::GetStartTime |
( |
| ) |
|
|
inlinestatic |
◆ GetTime()
static float TimeManager::GetTime |
( |
| ) |
|
|
inlinestatic |
Gets the time.
- Returns
- Returns the time as provided by the Sly Engine through privProcessTime.
◆ Instance()
Gets the instance.
- Returns
- A reference to a TimeManager.
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ privGetFrameCount()
int TimeManager::privGetFrameCount |
( |
| ) |
|
|
private |
◆ privGetFrameTime()
float TimeManager::privGetFrameTime |
( |
| ) |
|
|
private |
Private get frame time.
- Returns
- A float frameTime.
◆ privGetStartTime()
float TimeManager::privGetStartTime |
( |
| ) |
|
|
private |
◆ privGetTime()
float TimeManager::privGetTime |
( |
| ) |
|
|
private |
Private get time.
- Returns
- A float for system time (currentTime).
◆ privProcessTime()
void TimeManager::privProcessTime |
( |
float |
sys_time | ) |
|
|
private |
Private process time. Take currentTime - previousTime.
- Parameters
-
◆ privSetStartTime()
void TimeManager::privSetStartTime |
( |
float |
newStartTime | ) |
|
|
private |
◆ privTerminate()
void TimeManager::privTerminate |
( |
| ) |
|
|
private |
Private terminate. Deletes Pointer instance.
◆ ProcessTime()
static void TimeManager::ProcessTime |
( |
float |
sys_time | ) |
|
|
inlinestatic |
Process the time described by sys_time.
- Parameters
-
◆ SetStartTime()
static void TimeManager::SetStartTime |
( |
float |
newStartTime | ) |
|
|
inlinestaticprivate |
◆ Terminate()
static void TimeManager::Terminate |
( |
| ) |
|
|
inlinestatic |
Terminates the singleton.
◆ TimeManagerAttorney
Dictates access for Engine calls.
◆ currentTime
float TimeManager::currentTime |
|
private |
Current time of the system given by the engine.
◆ frameCount
int TimeManager::frameCount |
|
private |
◆ frameTime
float TimeManager::frameTime |
|
private |
Frame time of the engine, result of currentTime - previousTime.
◆ FrzTime
FreezeTime TimeManager::FrzTime |
|
private |
FreezeTime module, used for FreezeTime::GetTimeInSeconds()
◆ previousTime
float TimeManager::previousTime |
|
private |
Time marker used by FreezeTime.
◆ ptrInstance
◆ startTime
float TimeManager::startTime |
|
private |
The documentation for this class was generated from the following files: