aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-03-19 15:23:06 -0400
committerJack Lloyd <[email protected]>2017-03-19 15:23:06 -0400
commit18a471c3c381c7228ce7db63f6be75a1eaf9a610 (patch)
tree2710d94f83cb21228972d54cadabc727b6415e97 /src/tests
parente908dd7dce8dbb094bf5390aff0bbfc69af04bb2 (diff)
parent4809e8514061b4eb58a548c8206111b868549914 (diff)
Merge GH #915 Fix OS::get_processor_timestamp()
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_os_utils.cpp3
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();