diff options
Diffstat (limited to 'vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp')
-rw-r--r-- | vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp b/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp index 5b6df6eef4e..d67c417b71a 100644 --- a/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp +++ b/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp @@ -65,7 +65,7 @@ TEST("estimate cost of thread bundle fork/join") { if (time < minTime) { minTime = time; } - FastOS_Thread::Sleep(10); + std::this_thread::sleep_for(10ms); } fprintf(stderr, "strategy: %s, threads: %zu, fork: %zu, iter: %zu, time: %g, unit: %g\n", strategy_name[strategy].c_str(), threads, fork, iter, minTime, |