diff --git a/common/time/Time.hpp b/common/time/Time.hpp index 9374d73..508de27 100644 --- a/common/time/Time.hpp +++ b/common/time/Time.hpp @@ -26,6 +26,8 @@ void OsSleep(uint32_t duration); const char* OsTimeGetTimingMethodName(TimingMethod timingMethod); +TimingMethod OsTimeGetTimingMethod(); + #endif #endif diff --git a/common/time/win/Time.cpp b/common/time/win/Time.cpp index 4c2487d..8ef8728 100644 --- a/common/time/win/Time.cpp +++ b/common/time/win/Time.cpp @@ -45,6 +45,10 @@ const char* OsTimeGetTimingMethodName(TimingMethod timingMethod) { } } +TimingMethod OsTimeGetTimingMethod() { + return s_OsTimeMgr->timingMethod; +} + uint64_t OsGetAsyncTimeMsPrecise() { return s_OsTimeMgr->Snapshot(); }