summaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/timer/timer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vbench/src/tests/timer/timer_test.cpp')
-rw-r--r--vbench/src/tests/timer/timer_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vbench/src/tests/timer/timer_test.cpp b/vbench/src/tests/timer/timer_test.cpp
index 43e7b76caa0..eda0564d2d8 100644
--- a/vbench/src/tests/timer/timer_test.cpp
+++ b/vbench/src/tests/timer/timer_test.cpp
@@ -1,13 +1,14 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vbench/test/all.h>
+#include <vespa/vespalib/util/time.h>
using namespace vbench;
IGNORE_TEST("timer") {
Timer timer;
EXPECT_APPROX(0.0, timer.sample(), 0.1);
- vespalib::Thread::sleep(1000);
+ std::this_thread::sleep_for(1000ms);
EXPECT_APPROX(1.0, timer.sample(), 0.1);
timer.reset();
EXPECT_APPROX(0.0, timer.sample(), 0.1);