2019-05-15 16:52:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CTimer
|
|
|
|
{
|
2019-05-29 02:52:30 +02:00
|
|
|
public: // remove when each variable will be encapsulated
|
2019-05-15 16:52:37 +02:00
|
|
|
static uint32 &m_snTimeInMilliseconds;
|
|
|
|
static uint32 &m_snTimeInMillisecondsPauseMode;
|
|
|
|
static uint32 &m_snTimeInMillisecondsNonClipped;
|
|
|
|
static uint32 &m_snPreviousTimeInMilliseconds;
|
|
|
|
static uint32 &m_FrameCounter;
|
|
|
|
static float &ms_fTimeScale;
|
|
|
|
static float &ms_fTimeStep;
|
|
|
|
static float &ms_fTimeStepNonClipped;
|
|
|
|
static bool &m_UserPause;
|
|
|
|
static bool &m_CodePause;
|
|
|
|
public:
|
|
|
|
static float GetTimeStep(void) { return ms_fTimeStep; }
|
2019-05-19 21:28:10 +02:00
|
|
|
static void SetTimeStep(float ts) { ms_fTimeStep = ts; }
|
2019-05-15 16:52:37 +02:00
|
|
|
static uint32 GetFrameCounter(void) { return m_FrameCounter; }
|
|
|
|
static uint32 GetTimeInMilliseconds(void) { return m_snTimeInMilliseconds; }
|
|
|
|
};
|