summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/left_right_heap
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-11-19 23:22:55 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-11-20 21:55:01 +0000
commitcf3b20dba22718b533eac6854cde86b6538958af (patch)
tree9a0e795cd74d2721140c48012f794298dfef7420 /vespalib/src/tests/left_right_heap
parent64b7c822099d7cda921699e380c4d95608a1ab00 (diff)
FastOS_Time -> std::chrono.
Diffstat (limited to 'vespalib/src/tests/left_right_heap')
-rw-r--r--vespalib/src/tests/left_right_heap/left_right_heap_bench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/tests/left_right_heap/left_right_heap_bench.cpp b/vespalib/src/tests/left_right_heap/left_right_heap_bench.cpp
index e6fdab7d773..c43d0ec1c29 100644
--- a/vespalib/src/tests/left_right_heap/left_right_heap_bench.cpp
+++ b/vespalib/src/tests/left_right_heap/left_right_heap_bench.cpp
@@ -3,7 +3,7 @@
#include <vespa/vespalib/util/left_right_heap.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/inline.h>
-#include <vespa/fastos/time.h>
+#include <vespa/fastos/timestamp.h>
using namespace vespalib;
@@ -36,11 +36,11 @@ struct MyInvCmp {
struct Timer {
double minTime;
- FastOS_Time timer;
+ fastos::StopWatch timer;
Timer() : minTime(1.0e10), timer() {}
- void start() { timer.SetNow(); }
+ void start() { timer.restart(); }
void stop() {
- double ms = timer.MilliSecsToNow();
+ double ms = timer.elapsed().ms();
minTime = std::min(minTime, ms);
}
};