summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-01-07 23:51:26 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-01-08 00:15:52 +0100
commit03b1d8abecbf7db72845f883bf20c3c9bdf820a4 (patch)
tree5ea961ee6d85053a1af0cba81ea4baec0a0b5fba /config
parentac86bb091d01e6299d6f3e88c531d1cd6903474d (diff)
system_time and steady_time might have different duration types.
Diffstat (limited to 'config')
-rw-r--r--config/src/tests/trace/trace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/tests/trace/trace.cpp b/config/src/tests/trace/trace.cpp
index fdb40d40893..89e1cb3cbaf 100644
--- a/config/src/tests/trace/trace.cpp
+++ b/config/src/tests/trace/trace.cpp
@@ -10,7 +10,7 @@ using namespace vespalib::slime;
struct FixedClock : public Clock
{
- FixedClock() : _currentTime(duration::zero()) { }
+ FixedClock() : _currentTime(vespalib::system_time::duration::zero()) { }
vespalib::system_time _currentTime;
vespalib::system_time currentTime() const override { return _currentTime; }
};
@@ -57,7 +57,7 @@ TEST("that trace can be copied") {
EXPECT_EQUAL(trace.toString(), trace2.toString());
}
-constexpr vespalib::system_time epoch(duration::zero());
+constexpr vespalib::system_time epoch(vespalib::system_time::duration::zero());
TEST("ensure that system clock is used by default") {
Trace trace(2);