Use full precision for total seconds in TimeSpan::toString
This commit is contained in:
parent
a3192a1113
commit
85f29adb8a
|
@ -160,6 +160,8 @@ void TimeSpan::toString(string &result, TimeSpanOutputFormat format, bool fullSe
|
||||||
case TimeSpanOutputFormat::TotalSeconds:
|
case TimeSpanOutputFormat::TotalSeconds:
|
||||||
if (fullSeconds) {
|
if (fullSeconds) {
|
||||||
s << setprecision(0);
|
s << setprecision(0);
|
||||||
|
} else {
|
||||||
|
s << setprecision(10);
|
||||||
}
|
}
|
||||||
s << positive.totalSeconds();
|
s << positive.totalSeconds();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue