diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-16 22:55:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 22:55:04 -0600 |
commit | 06eae17d656fd281e05ca28d4e38696fc05d2dbf (patch) | |
tree | 3cd1f386e75cfdefaedb1ba19f8fbdc5533fc5b7 /searchcore/src/tests/proton/common/cachedselect_test.cpp | |
parent | 72e3bfb3c55653e57991ba3aff1f58f25f20dd8b (diff) |
Revert "Revert "Balder/remove steadytimestamp 2""
Diffstat (limited to 'searchcore/src/tests/proton/common/cachedselect_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/common/cachedselect_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/common/cachedselect_test.cpp b/searchcore/src/tests/proton/common/cachedselect_test.cpp index 74d65a5bf7f..0fc290c9d2c 100644 --- a/searchcore/src/tests/proton/common/cachedselect_test.cpp +++ b/searchcore/src/tests/proton/common/cachedselect_test.cpp @@ -617,7 +617,7 @@ TEST_F("Test performance when using attributes", TestFixture) uint32_t i; const uint32_t loopcnt = 30000; LOG(info, "Starting minibm loop, %u ierations of 4 docs each", loopcnt); - fastos::StopWatch sw; + vespalib::Timer sw; for (i = 0; i < loopcnt; ++i) { ctx._docId = 1u; if (sel->contains(ctx) != Result::False) @@ -632,11 +632,11 @@ TEST_F("Test performance when using attributes", TestFixture) if (sel->contains(ctx) != Result::Invalid) break; } - fastos::TimeStamp elapsed = sw.elapsed(); + vespalib::duration 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, elapsed.ns(), static_cast<double>(elapsed.ns()) / ( 4 * i)); + i, vespalib::count_ns(elapsed), static_cast<double>(vespalib::count_ns(elapsed)) / ( 4 * i)); } |