From: loong0 <
long...@gmail.com>
Committer: Pavel Emelyanov <
xe...@scylladb.com>
Branch: master
De-anonymize duration class
This is to define formatter by the next patch
---
diff --git a/tests/perf/perf_tests.cc b/tests/perf/perf_tests.cc
--- a/tests/perf/perf_tests.cc
+++ b/tests/perf/perf_tests.cc
@@ -160,7 +160,6 @@ struct result {
double inst = 0.;
};
-namespace {
struct duration {
double value;
@@ -183,8 +182,6 @@ static inline std::ostream& operator<<(std::ostream& os, duration d)
return os;
}
-}
-
static constexpr auto header_format_string = "{:<40} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11}\n";
static constexpr auto format_string = "{:<40} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11.3f} {:>11.3f} {:>11.1f}\n";