Skip to content

Commit 98aabd6

Browse files
committed
remote not used PrettyTimeAmount from SWIM
1 parent 79860b9 commit 98aabd6

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Sources/SWIM/Utils/time.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,3 @@ extension Swift.Duration {
7878
}
7979
}
8080

81-
/// Represents number of nanoseconds within given time unit
82-
enum PrettyTimeUnit: Int64 {
83-
case days = 86_400_000_000_000
84-
case hours = 3_600_000_000_000
85-
case minutes = 60_000_000_000
86-
case seconds = 1_000_000_000
87-
case milliseconds = 1_000_000
88-
case microseconds = 1000
89-
case nanoseconds = 1
90-
91-
var abbreviated: String {
92-
switch self {
93-
case .nanoseconds: return "ns"
94-
case .microseconds: return "μs"
95-
case .milliseconds: return "ms"
96-
case .seconds: return "s"
97-
case .minutes: return "m"
98-
case .hours: return "h"
99-
case .days: return "d"
100-
}
101-
}
102-
}

0 commit comments

Comments
 (0)