aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp
diff options
context:
space:
mode:
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.cpp4
1 files changed, 2 insertions, 2 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 d67c417b71a..50ee6296f16 100644
--- a/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp
+++ b/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp
@@ -57,11 +57,11 @@ TEST("estimate cost of thread bundle fork/join") {
}
double minTime = 1000000.0;
for (size_t samples = 0; samples < 32; ++samples) {
- fastos::StopWatch timer;
+ vespalib::Timer timer;
for (size_t n = 0; n < fork; ++n) {
threadBundle.run(targets);
}
- double time = timer.elapsed().ms();
+ double time = vespalib::count_ms(timer.elapsed());
if (time < minTime) {
minTime = time;
}