summaryrefslogtreecommitdiffstats
path: root/src/Timer.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-06 17:06:08 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-06 17:06:08 +0200
commitb1500fbe030ba985f8ff1ce759d9f3d83c0c42d9 (patch)
tree41de08821d8568ad3f83ba087741d9c1d6aa1543 /src/Timer.h
parentmisc classes finished (diff)
downloadre3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.gz
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.bz2
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.lz
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.xz
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.zst
re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.zip
Diffstat (limited to '')
-rw-r--r--src/Timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Timer.h b/src/Timer.h
index 75d4048c..fbb130a3 100644
--- a/src/Timer.h
+++ b/src/Timer.h
@@ -29,6 +29,7 @@ public:
static inline void SetPreviousTimeInMilliseconds(uint32 t) { m_snPreviousTimeInMilliseconds = t; }
static float GetTimeScale(void) { return ms_fTimeScale; }
static inline void SetTimeScale(float ts) { ms_fTimeScale = ts; }
+ static inline float GetFrameTimeStepInMilliseconds() { return ms_fTimeStep / 50.0f * 1000.0f; }
static bool GetIsPaused() { return m_UserPause || m_CodePause; }
static bool GetIsUserPaused() { return m_UserPause; }