aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-11-20 21:45:17 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-11-20 21:45:17 +0000
commitafbe78369142bf8f02e89eb49117eef91a76e867 (patch)
tree6e6133dc989172ef1b212981ae62ae3ab4280eb5 /vespalib
parent3c9a7ec70c36bf238765588859fa7b6672a9ff8a (diff)
Address comments from code review.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/testkit/test_comparators.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/testkit/test_comparators.h b/vespalib/src/vespa/vespalib/testkit/test_comparators.h
index 02e7566c976..5119aaebea6 100644
--- a/vespalib/src/vespa/vespalib/testkit/test_comparators.h
+++ b/vespalib/src/vespa/vespalib/testkit/test_comparators.h
@@ -3,6 +3,17 @@
#pragma once
#include <vespa/vespalib/util/approx.h>
+#include <ostream>
+#include <chrono>
+
+namespace std::chrono {
+//TODO Move to a more suitable place
+template <typename rep, typename period>
+ostream & operator << (ostream & os, duration<rep, period> ts) {
+ return os << ts.count();
+}
+
+}
namespace vespalib {