Update global time interface
This commit is contained in:
parent
4b7f1ad6a2
commit
2fb319840c
2 changed files with 5 additions and 0 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue