aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Chrono.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Chrono.hxx b/src/Chrono.hxx
index 97e3ddc24..e9edb8b09 100644
--- a/src/Chrono.hxx
+++ b/src/Chrono.hxx
@@ -61,6 +61,10 @@ public:
constexpr T ToScale(unsigned base) const {
return count() * T(base) / 1000;
}
+
+ constexpr double ToDoubleS() const {
+ return double(count()) / 1000.;
+ };
};
#endif