aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/sortspec/multilevelsort.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/sortspec/multilevelsort.cpp')
-rw-r--r--searchlib/src/tests/sortspec/multilevelsort.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/searchlib/src/tests/sortspec/multilevelsort.cpp b/searchlib/src/tests/sortspec/multilevelsort.cpp
index 65c4cd7da95..640e6f45e80 100644
--- a/searchlib/src/tests/sortspec/multilevelsort.cpp
+++ b/searchlib/src/tests/sortspec/multilevelsort.cpp
@@ -263,10 +263,9 @@ MultilevelSortTest::sortAndCheck(const std::vector<Spec> &spec, uint32_t num,
}
}
- FastOS_Time timer;
- timer.SetNow();
+ fastos::StopWatch timer;
sorter.sortResults(hits, num, num);
- LOG(info, "sort time = %f ms", timer.MilliSecsToNow());
+ LOG(info, "sort time = %ld ms", timer.elapsed().ms());
uint32_t *offsets = new uint32_t[num + 1];
char *buf = new char[sorter.getSortDataSize(0, num)];