From 85f29adb8aa67cfcd3d565671e76c00d7f79b045 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 29 Nov 2017 23:11:26 +0100 Subject: [PATCH] Use full precision for total seconds in TimeSpan::toString --- chrono/timespan.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrono/timespan.cpp b/chrono/timespan.cpp index 697a37d..8d457f7 100644 --- a/chrono/timespan.cpp +++ b/chrono/timespan.cpp @@ -160,6 +160,8 @@ void TimeSpan::toString(string &result, TimeSpanOutputFormat format, bool fullSe case TimeSpanOutputFormat::TotalSeconds: if (fullSeconds) { s << setprecision(0); + } else { + s << setprecision(10); } s << positive.totalSeconds(); break;