aboutsummaryrefslogtreecommitdiff
path: root/zencore/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/timer.cpp')
-rw-r--r--zencore/timer.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/zencore/timer.cpp b/zencore/timer.cpp
index f67822e73..08b5e06d2 100644
--- a/zencore/timer.cpp
+++ b/zencore/timer.cpp
@@ -58,15 +58,6 @@ GetHifreqTimerFrequencySafe()
}
//////////////////////////////////////////////////////////////////////////
-
-#if !ZEN_PLATFORM_WINDOWS
-void Sleep(uint32_t ms)
-{
- usleep(ms * 1000U);
-}
-#endif
-
-//////////////////////////////////////////////////////////////////////////
//
// Testing related code follows...
//
@@ -80,7 +71,7 @@ TEST_CASE("Timer")
{
uint64_t s0 = GetHifreqTimerValue();
uint64_t t0 = GetCpuTimerValue();
- Sleep(1000);
+ zen::Sleep(1000);
uint64_t s1 = GetHifreqTimerValue();
uint64_t t1 = GetCpuTimerValue();
// double r = double(t1 - t0) / (s1 - s0);