Update global time interface

This commit is contained in:
IlyaShurupov 2024-07-17 09:40:15 +03:00
parent 4b7f1ad6a2
commit 2fb319840c
2 changed files with 5 additions and 0 deletions

View file

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

View file

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