diff options
author | Jack Lloyd <[email protected]> | 2017-03-19 15:23:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-03-19 15:23:06 -0400 |
commit | 18a471c3c381c7228ce7db63f6be75a1eaf9a610 (patch) | |
tree | 2710d94f83cb21228972d54cadabc727b6415e97 /src/tests/test_os_utils.cpp | |
parent | e908dd7dce8dbb094bf5390aff0bbfc69af04bb2 (diff) | |
parent | 4809e8514061b4eb58a548c8206111b868549914 (diff) |
Merge GH #915 Fix OS::get_processor_timestamp()
Diffstat (limited to 'src/tests/test_os_utils.cpp')
-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 d779f41de..5153338d7 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(); |