diff options
| author | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
| commit | 68c951e0f440ffd483795dced737e88152c1a581 (patch) | |
| tree | 5c0910ca2a85b45fb05dba3ce457b7d156213894 /zencore/timer.cpp | |
| parent | Merge main into linux-mac (diff) | |
| parent | Trigger storage scrubbing pass at startup (diff) | |
| download | zen-68c951e0f440ffd483795dced737e88152c1a581.tar.xz zen-68c951e0f440ffd483795dced737e88152c1a581.zip | |
Merged main into linux-mac
Diffstat (limited to 'zencore/timer.cpp')
| -rw-r--r-- | zencore/timer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zencore/timer.cpp b/zencore/timer.cpp index 08b5e06d2..1e73a7532 100644 --- a/zencore/timer.cpp +++ b/zencore/timer.cpp @@ -1,8 +1,10 @@ // Copyright Epic Games, Inc. All Rights Reserved. -#include <doctest/doctest.h> #include <zencore/thread.h> #include <zencore/timer.h> + +#include <zencore/testing.h> + #if ZEN_PLATFORM_WINDOWS # include <zencore/windows.h> #elif ZEN_PLATFORM_LINUX @@ -62,6 +64,8 @@ GetHifreqTimerFrequencySafe() // Testing related code follows... // +#if ZEN_WITH_TESTS + void timer_forcelink() { @@ -79,4 +83,6 @@ TEST_CASE("Timer") CHECK_NE(s0, s1); } +#endif + } // namespace zen |