summaryrefslogtreecommitdiffstats
path: root/src/core/Timer.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-03-17 18:46:37 +0100
committerGitHub <noreply@github.com>2020-03-17 18:46:37 +0100
commit53e65a32cd30b690825332bc3bb17da875775d0c (patch)
tree4443d13dedf97357acfe2e9b859d1ed431fdbbf0 /src/core/Timer.h
parentFinished CRadar, a bit of CExplosion (diff)
parentMerge pull request #347 from Nick007J/master (diff)
downloadre3-53e65a32cd30b690825332bc3bb17da875775d0c.tar
re3-53e65a32cd30b690825332bc3bb17da875775d0c.tar.gz
re3-53e65a32cd30b690825332bc3bb17da875775d0c.tar.bz2
re3-53e65a32cd30b690825332bc3bb17da875775d0c.tar.lz
re3-53e65a32cd30b690825332bc3bb17da875775d0c.tar.xz
re3-53e65a32cd30b690825332bc3bb17da875775d0c.tar.zst
re3-53e65a32cd30b690825332bc3bb17da875775d0c.zip
Diffstat (limited to 'src/core/Timer.h')
-rw-r--r--src/core/Timer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/Timer.h b/src/core/Timer.h
index 8f3b77c2..89c4a430 100644
--- a/src/core/Timer.h
+++ b/src/core/Timer.h
@@ -2,6 +2,7 @@
class CTimer
{
+public:
static uint32 &m_snTimeInMilliseconds;
static uint32 &m_snTimeInMillisecondsPauseMode;
static uint32 &m_snTimeInMillisecondsNonClipped;
@@ -12,7 +13,7 @@ class CTimer
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 float GetTimeStepInSeconds() { return ms_fTimeStep / 50.0f; }