diff --git a/Modules/private/Timing.cpp b/Modules/private/Timing.cpp index 45bc56d..0a71c76 100644 --- a/Modules/private/Timing.cpp +++ b/Modules/private/Timing.cpp @@ -17,6 +17,10 @@ namespace tp { return gCurrentTime; } + void updateGlobalTime() { + get_time(); + } + void sleep(time_ms mDuration) { THREAD_SLEEP(mDuration); } Timer::Timer() { diff --git a/Modules/public/Timing.hpp b/Modules/public/Timing.hpp index 3909bfd..52d91c7 100644 --- a/Modules/public/Timing.hpp +++ b/Modules/public/Timing.hpp @@ -34,6 +34,7 @@ namespace tp { void sleep(time_ms duration); time_ms get_time(); + void updateGlobalTime(); struct FpsCounter { halni frames = 0;