Skip to content

Commit 6d07868

Browse files
committed
Correct *Clock.now to report via the correct runtime API
1 parent 8f2b121 commit 6d07868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Concurrency/ContinuousClock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extension ContinuousClock: Clock {
4949
public static var now: ContinuousClock.Instant {
5050
var seconds = Int64(0)
5151
var nanoseconds = Int64(0)
52-
_getClockRes(
52+
_getTime(
5353
seconds: &seconds,
5454
nanoseconds: &nanoseconds,
5555
clock: .continuous)

stdlib/public/Concurrency/SuspendingClock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extension SuspendingClock: Clock {
4141
public static var now: SuspendingClock.Instant {
4242
var seconds = Int64(0)
4343
var nanoseconds = Int64(0)
44-
_getClockRes(
44+
_getTime(
4545
seconds: &seconds,
4646
nanoseconds: &nanoseconds,
4747
clock: .suspending)

0 commit comments

Comments
 (0)