mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
30 lines
No EOL
731 B
C++
30 lines
No EOL
731 B
C++
#ifndef __TIMER
|
|
#define __TIMER
|
|
|
|
typedef long long(*gtaTimer)();
|
|
|
|
class CTimer
|
|
{
|
|
public:
|
|
static float* ms_fTimeScale;
|
|
static float* ms_fTimeStep;
|
|
static float* ms_fTimeStepNotClipped;
|
|
static bool* m_UserPause;
|
|
static bool* m_CodePause;
|
|
static int* m_snTimeInMilliseconds;
|
|
static int* m_snPreviousTimeInMilliseconds;
|
|
static int* m_snTimeInMillisecondsNonClipped;
|
|
static int* m_snTimeInMillisecondsPauseMode;
|
|
static unsigned int* m_FrameCounter;
|
|
|
|
public:
|
|
static void Initialise();
|
|
static void Suspend();
|
|
static void Resume();
|
|
static unsigned int GetCyclesPerFrame();
|
|
static unsigned int GetCyclesPerMillisecond();
|
|
static void Update();
|
|
static void RecoverFromSave();
|
|
};
|
|
|
|
#endif |