From 860474654a89d2493cf0d0658548fc1d587d1ad5 Mon Sep 17 00:00:00 2001 From: IlyaShurupov Date: Wed, 17 Jul 2024 09:40:15 +0300 Subject: [PATCH] Update global time interface --- Modules/private/Timing.cpp | 4 ++++ Modules/public/Timing.hpp | 1 + 2 files changed, 5 insertions(+) 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;