Skip to content

Commit ddad4ae

Browse files
committed
fix: remove unavailable API
1 parent 8e210e7 commit ddad4ae

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Sources/Tokenizers/Utils.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,6 @@
99
import Foundation
1010

1111
struct Utils {
12-
/// Time a block in ms
13-
static func time<T>(label: String, _ block: () -> T) -> T {
14-
let startTime = CFAbsoluteTimeGetCurrent()
15-
let result = block()
16-
let diff = (CFAbsoluteTimeGetCurrent() - startTime) * 1_000
17-
print("[\(label)] \(diff)ms")
18-
return result
19-
}
20-
21-
/// Time a block in seconds and return (output, time)
22-
static func time<T>(_ block: () -> T) -> (T, Double) {
23-
let startTime = CFAbsoluteTimeGetCurrent()
24-
let result = block()
25-
let diff = CFAbsoluteTimeGetCurrent() - startTime
26-
return (result, diff)
27-
}
28-
2912
/// Return unix timestamp in ms
3013
static func dateNow() -> Int64 {
3114
// Use `Int` when we don't support 32-bits devices/OSes anymore.

0 commit comments

Comments
 (0)