diff --git a/common/time/linux/Time.cpp b/common/time/linux/Time.cpp index d4a1ea5..b85b2f9 100644 --- a/common/time/linux/Time.cpp +++ b/common/time/linux/Time.cpp @@ -19,6 +19,10 @@ uint64_t OsGetAsyncTimeMsPrecise() { return ticks; } +int64_t OsGetAsyncClocksPerSecond() { + return 1000LL; +} + uint64_t OsGetAsyncTimeMs() { return OsGetAsyncTimeMsPrecise(); } @@ -27,4 +31,4 @@ void OsSleep(uint32_t duration) { usleep(duration); } -#endif \ No newline at end of file +#endif diff --git a/common/time/mac/Time.cpp b/common/time/mac/Time.cpp index f7423af..e6fb5d7 100644 --- a/common/time/mac/Time.cpp +++ b/common/time/mac/Time.cpp @@ -28,6 +28,11 @@ uint64_t OsGetAsyncTimeMs() { return OsGetAsyncTimeMsPrecise(); } +int64_t OsGetAsyncClocksPerSecond() { + // TODO: verify + return 1000LL; +} + void OsSleep(uint32_t duration) { usleep(duration); }