mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
feat(time): implement OsTimeGetTimingMethod
This commit is contained in:
parent
b3d83388ef
commit
4b06025afd
2 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ void OsSleep(uint32_t duration);
|
|||
|
||||
const char* OsTimeGetTimingMethodName(TimingMethod timingMethod);
|
||||
|
||||
TimingMethod OsTimeGetTimingMethod();
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@ const char* OsTimeGetTimingMethodName(TimingMethod timingMethod) {
|
|||
}
|
||||
}
|
||||
|
||||
TimingMethod OsTimeGetTimingMethod() {
|
||||
return s_OsTimeMgr->timingMethod;
|
||||
}
|
||||
|
||||
uint64_t OsGetAsyncTimeMsPrecise() {
|
||||
return s_OsTimeMgr->Snapshot();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue