Compare commits
2 Commits
3d361845ab
...
260de52533
Author | SHA1 | Date | |
---|---|---|---|
|
260de52533 | ||
|
7c68d02169 |
@ -374,6 +374,9 @@ extension Element {
|
||||
}
|
||||
|
||||
func mostRecentElements(_ count: Int) -> [Element] {
|
||||
guard self.thumbnailStyle == .large else {
|
||||
return []
|
||||
}
|
||||
guard self.containsElements else {
|
||||
return [self]
|
||||
}
|
||||
|
@ -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