ElapsedTimer: Display time in mm:ss format

This commit is contained in:
jcwhisman
2020-09-01 11:16:59 -05:00
committed by Jordan Atwood
parent 01447e52a7
commit 43c5e1f916
2 changed files with 8 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ class ElapsedTimer extends InfoBox
}
Duration time = Duration.between(startTime, lastTime == null ? Instant.now() : lastTime);
final String formatString = time.toHours() > 0 ? "HH:mm" : "mm:ss";
final String formatString = "mm:ss";
return DurationFormatUtils.formatDuration(time.toMillis(), formatString, true);
}