JugiMap Framework
Time Class Reference

Time. More...

#include <jmGlobal.h>

Public Member Functions

double UpdatePassedTimeMS ()
 Updates and returns the passed time in milliseconds. More...
 
void AddSuspendedTimeMS (int _suspendedTimeMS)
 Add suspended time in milliseconds. More...
 
int GetPassedNetTimeMS ()
 Returns passed net time in milliseconds. More...
 
void SetLogicTimeMS (float _logicTimeStepMS)
 Set the logic time step in milliseconds. More...
 
float GetLogicTimeMS ()
 Returns the frame time in milliseconds. More...
 

Detailed Description

Time.

The Time class stores required time parameters.

Member Function Documentation

◆ UpdatePassedTimeMS()

double UpdatePassedTimeMS ( )
inline

Updates and returns the passed time in milliseconds.

This function must called at the begining of logic update.

See also
GetPassedNetTimeMS

◆ AddSuspendedTimeMS()

void AddSuspendedTimeMS ( int  _suspendedTimeMS)
inline

Add suspended time in milliseconds.

Suspended time is time when application is suspended. This function is called from SceneManager::Update and should not be called manually.

◆ GetPassedNetTimeMS()

int GetPassedNetTimeMS ( )
inline

Returns passed net time in milliseconds.

This function returns the net passed time which is the full passed time with deducted suspended time.

See also
UpdatePassedTimeMS()

◆ SetLogicTimeMS()

void SetLogicTimeMS ( float  _logicTimeStepMS)
inline

Set the logic time step in milliseconds.

This function must called at the begining of logic update. Depending of the engine this time step can be the frame time or fixed logic time step.

See also
GetLogicTimeMS

◆ GetLogicTimeMS()

float GetLogicTimeMS ( )
inline

Returns the frame time in milliseconds.

See also
SetLogicTimeMS

The documentation for this class was generated from the following file: