summaryrefslogtreecommitdiffstats
path: root/src/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Timer.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Timer.h b/src/Timer.h
new file mode 100644
index 00000000..a96574ce
--- /dev/null
+++ b/src/Timer.h
@@ -0,0 +1,19 @@
+#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 uint32 GetFrameCounter(void) { return m_FrameCounter; }
+ static uint32 GetTimeInMilliseconds(void) { return m_snTimeInMilliseconds; }
+};