diff options
author | Daniel Neus <[email protected]> | 2017-03-13 22:20:58 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2017-03-14 09:43:53 +0100 |
commit | 4809e8514061b4eb58a548c8206111b868549914 (patch) | |
tree | 51b01965aad0855d6f225522f91b4ed9aa608998 /src/tests | |
parent | 9961e475f10a671a8e25080958d26c8c356057ef (diff) |
Fix OS::get_processor_timestamp() tests
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_os_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test_os_utils.cpp b/src/tests/test_os_utils.cpp index 58858a4c2..a077b529f 100644 --- a/src/tests/test_os_utils.cpp +++ b/src/tests/test_os_utils.cpp @@ -7,6 +7,7 @@ #include "tests.h" #include <botan/internal/os_utils.h> +#include <thread> // For __ud2 intrinsic #if defined(BOTAN_TARGET_COMPILER_IS_MSVC) @@ -72,7 +73,7 @@ class OS_Utils_Tests : public Test const uint64_t proc_ts1 = Botan::OS::get_processor_timestamp(); // do something that consumes a little time - Botan::OS::get_process_id(); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); uint64_t proc_ts2 = Botan::OS::get_processor_timestamp(); |