mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
feat(time): add OsTimeGetTestError
This commit is contained in:
parent
48a95a9b30
commit
29d8f014ec
2 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,8 @@ void OsSleep(uint32_t duration);
|
|||
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
|
||||
uint32_t OsTimeGetTestError();
|
||||
|
||||
const char* OsTimeGetTimingMethodName(TimingMethod timingMethod);
|
||||
|
||||
TimingMethod OsTimeGetTimingMethod();
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ void OsTimeShutdown() {
|
|||
OsTimeManagerDestroy();
|
||||
}
|
||||
|
||||
uint32_t OsTimeGetTestError() {
|
||||
return s_OsTimeMgr->timingTestError;
|
||||
}
|
||||
|
||||
const char* OsTimeGetTimingMethodName(TimingMethod timingMethod) {
|
||||
switch (timingMethod) {
|
||||
case Timing_BestAvailable:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue