diff options
author | Jack Lloyd <[email protected]> | 2017-10-11 17:06:31 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-11 17:06:31 -0400 |
commit | 6ad726acbab81eca2ac5dab6a0b6da1cfb1131d6 (patch) | |
tree | 075e6c105dea52f06ae1a6d9b575e6654702fc3a | |
parent | 02cf0c8e5793447a907e2e44ee5976a46d181abd (diff) |
Avoid <thread>
Not needed here
-rw-r--r-- | src/tests/test_os_utils.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/test_os_utils.cpp b/src/tests/test_os_utils.cpp index d06f5dbb1..6707e8960 100644 --- a/src/tests/test_os_utils.cpp +++ b/src/tests/test_os_utils.cpp @@ -7,7 +7,6 @@ #include "tests.h" #include <botan/internal/os_utils.h> -#include <thread> // For __ud2 intrinsic #if defined(BOTAN_TARGET_COMPILER_IS_MSVC) @@ -73,7 +72,12 @@ class OS_Utils_Tests final : public Test const uint64_t proc_ts1 = Botan::OS::get_processor_timestamp(); // do something that consumes a little time - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + volatile int x = 11; + while(x < 65535) + { + x *= 2; + x -= 10; + } uint64_t proc_ts2 = Botan::OS::get_processor_timestamp(); |