Update global time interface

This commit is contained in:
IlyaShurupov 2024-07-17 09:40:15 +03:00 committed by Ilya Shurupov
parent 3be2425665
commit 860474654a
2 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,10 @@ namespace tp {
return gCurrentTime;
}
void updateGlobalTime() {
get_time();
}
void sleep(time_ms mDuration) { THREAD_SLEEP(mDuration); }
Timer::Timer() {

View file

@ -34,6 +34,7 @@ namespace tp {
void sleep(time_ms duration);
time_ms get_time();
void updateGlobalTime();
struct FpsCounter {
halni frames = 0;