mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 07:59:00 +00:00
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#pragma once
|
|
|
|
class CTimer
|
|
{
|
|
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; }
|
|
static void SetTimeStep(float ts) { ms_fTimeStep = ts; }
|
|
static uint32 GetFrameCounter(void) { return m_FrameCounter; }
|
|
static uint32 GetTimeInMilliseconds(void) { return m_snTimeInMilliseconds; }
|
|
|
|
static inline Bool GetIsPaused() { return m_UserPause || m_CodePause; }
|
|
|
|
static void Initialise(void);
|
|
static void Shutdown(void);
|
|
static void Update(void);
|
|
static void Suspend(void);
|
|
static void Resume(void);
|
|
static UInt32 GetCyclesPerMillisecond(void);
|
|
static UInt32 GetCurrentTimeInCycles(void);
|
|
static Bool GetIsSlowMotionActive(void);
|
|
static void Stop(void);
|
|
static void StartUserPause(void);
|
|
static void EndUserPause(void);
|
|
};
|