summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/common/cachedselect_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/common/cachedselect_test.cpp')
-rw-r--r--searchcore/src/tests/proton/common/cachedselect_test.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/searchcore/src/tests/proton/common/cachedselect_test.cpp b/searchcore/src/tests/proton/common/cachedselect_test.cpp
index aa2106923e3..74d65a5bf7f 100644
--- a/searchcore/src/tests/proton/common/cachedselect_test.cpp
+++ b/searchcore/src/tests/proton/common/cachedselect_test.cpp
@@ -632,14 +632,11 @@ TEST_F("Test performance when using attributes", TestFixture)
if (sel->contains(ctx) != Result::Invalid)
break;
}
- sw.stop();
+ fastos::TimeStamp elapsed = sw.elapsed();
EXPECT_EQUAL(loopcnt, i);
LOG(info,
- "Elapsed time for %u iterations of 4 docs each: %" PRId64 " ns, "
- "%8.4f ns/doc",
- i,
- sw.elapsed().ns(),
- static_cast<double>(sw.elapsed().ns()) / ( 4 * i));
+ "Elapsed time for %u iterations of 4 docs each: %" PRId64 " ns, %8.4f ns/doc",
+ i, elapsed.ns(), static_cast<double>(elapsed.ns()) / ( 4 * i));
}