File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ import Android
35
35
#elseif canImport(Musl)
36
36
import Musl
37
37
#elseif canImport(WASILibc)
38
- import WASILibc
39
- #if canImport(wasi_pthread)
40
- import wasi_pthread
41
- #endif
38
+ import WASILibc
39
+ #if canImport(wasi_pthread)
40
+ import wasi_pthread
41
+ #endif
42
42
#else
43
43
#error("Unsupported runtime")
44
44
#endif
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ import Android
24
24
#elseif canImport(Musl)
25
25
import Musl
26
26
#elseif canImport(WASILibc)
27
- import WASILibc
27
+ import WASILibc
28
28
#else
29
29
#error("Unsupported runtime")
30
30
#endif
31
31
32
32
#if canImport(_CWASI)
33
- import _CWASI
33
+ import _CWASI
34
34
#endif
35
35
36
36
public protocol TracerInstant : Comparable , Hashable , Sendable {
@@ -91,9 +91,9 @@ public struct DefaultTracerClock {
91
91
public var now : Self . Instant {
92
92
var ts = timespec ( )
93
93
#if os(WASI)
94
- CWASI_clock_gettime_realtime ( & ts)
94
+ CWASI_clock_gettime_realtime ( & ts)
95
95
#else
96
- clock_gettime ( CLOCK_REALTIME, & ts)
96
+ clock_gettime ( CLOCK_REALTIME, & ts)
97
97
#endif
98
98
/// We use unsafe arithmetic here because `UInt64.max` nanoseconds is more than 580 years,
99
99
/// and the odds that this code will still be running 530 years from now is very, very low,
You can’t perform that action at this time.
0 commit comments