Change run time display
This commit is contained in:
parent
7c68d02169
commit
260de52533
@ -119,9 +119,7 @@ private func finish(start: Date, complete: Bool) {
|
||||
print("--- SUMMARY ----------------------------------------")
|
||||
print(" ")
|
||||
let duration = Int(-start.timeIntervalSinceNow.rounded())
|
||||
if duration < 60 {
|
||||
print(" Duration: \(duration) s")
|
||||
} else if duration < 3600 {
|
||||
if duration < 3600 {
|
||||
print(String(format: " Duration: %d:%02d", duration / 60, duration % 60))
|
||||
} else {
|
||||
print(String(format: " Duration: %d:%02d:%02d", duration / 3600, (duration / 60) % 60, duration % 60))
|
||||
|
Loading…
Reference in New Issue
Block a user