Update global time interface
This commit is contained in:
parent
3be2425665
commit
860474654a
2 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ namespace tp {
|
|||
return gCurrentTime;
|
||||
}
|
||||
|
||||
void updateGlobalTime() {
|
||||
get_time();
|
||||
}
|
||||
|
||||
void sleep(time_ms mDuration) { THREAD_SLEEP(mDuration); }
|
||||
|
||||
Timer::Timer() {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ namespace tp {
|
|||
|
||||
void sleep(time_ms duration);
|
||||
time_ms get_time();
|
||||
void updateGlobalTime();
|
||||
|
||||
struct FpsCounter {
|
||||
halni frames = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue