diff options
Diffstat (limited to 'src/utils/time.cpp')
-rw-r--r-- | src/utils/time.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/time.cpp b/src/utils/time.cpp index c89914fa..df20fc23 100644 --- a/src/utils/time.cpp +++ b/src/utils/time.cpp @@ -41,6 +41,11 @@ unsigned deltaTimeMs() return s_deltaTimeMs; } +float deltaTime() +{ + return s_deltaTimeMs / 1000.f; +} + static int32_t getElapsedTime(uint32_t timeMs) { return static_cast<int32_t>(s_absoluteTimeMs - timeMs); |