aboutsummaryrefslogtreecommitdiff
path: root/zencore/timer.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-29 23:04:22 +0200
committerStefan Boberg <[email protected]>2021-09-29 23:04:22 +0200
commita8731fea7bff836f83b8bd82d47f14a0067ad5fe (patch)
treef4fc1fd0b06a70bd76bafaa6b0e6398fc2be46f3 /zencore/timer.cpp
parentthread: Marked some members noexcept and [[nodiscard]] (diff)
downloadzen-a8731fea7bff836f83b8bd82d47f14a0067ad5fe.tar.xz
zen-a8731fea7bff836f83b8bd82d47f14a0067ad5fe.zip
timer: cleaned up Stopwatch, removed GetCpuTimerValue
Diffstat (limited to 'zencore/timer.cpp')
-rw-r--r--zencore/timer.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/zencore/timer.cpp b/zencore/timer.cpp
index 88ec89cb7..b2c6cb6a2 100644
--- a/zencore/timer.cpp
+++ b/zencore/timer.cpp
@@ -73,18 +73,6 @@ timer_forcelink()
{
}
-TEST_CASE("Timer")
-{
- uint64_t s0 = GetHifreqTimerValue();
- uint64_t t0 = GetCpuTimerValue();
- zen::Sleep(1000);
- uint64_t s1 = GetHifreqTimerValue();
- uint64_t t1 = GetCpuTimerValue();
- // double r = double(t1 - t0) / (s1 - s0);
- CHECK_NE(t0, t1);
- CHECK_NE(s0, s1);
-}
-
#endif
} // namespace zen