diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-22 22:31:04 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-22 22:31:04 +1000 |
commit | cb19eef701b5c9e27d0464795fffcf8a4d795a21 (patch) | |
tree | 5cfbdf49ebd7ac9539891eea850e244887d4c355 /source/core/StarTime.cpp | |
parent | 4fbd67daccfa69df6988bdf17c67ee3d5f3049c5 (diff) |
Add character swapping (no GUI yet)
Diffstat (limited to 'source/core/StarTime.cpp')
-rw-r--r-- | source/core/StarTime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarTime.cpp b/source/core/StarTime.cpp index 622ea50..f64b850 100644 --- a/source/core/StarTime.cpp +++ b/source/core/StarTime.cpp @@ -43,7 +43,7 @@ String Time::printDuration(double time) { seconds = strf("{} second{}", numSeconds, numSeconds == 1 ? "" : "s"); } - int numMilliseconds = round(time * 1000); + int numMilliseconds = round(fmod(time, 1.0) * 1000); milliseconds = strf("{} millisecond{}", numMilliseconds, numMilliseconds == 1 ? "" : "s"); return String::joinWith(", ", hours, minutes, seconds, milliseconds); |