diff --git a/Sources/Testing/Events/TimeValue.swift b/Sources/Testing/Events/TimeValue.swift index 143aa7091..838eb381b 100644 --- a/Sources/Testing/Events/TimeValue.swift +++ b/Sources/Testing/Events/TimeValue.swift @@ -54,7 +54,7 @@ struct TimeValue: Sendable { @available(_clockAPI, *) init(_ instant: SuspendingClock.Instant) { -#if compiler(>=6.2) +#if compiler(>=6.3) self.init(SuspendingClock().systemEpoch.duration(to: instant)) #else self.init(unsafeBitCast(instant, to: Duration.self)) @@ -114,7 +114,7 @@ extension Duration { @available(_clockAPI, *) extension SuspendingClock.Instant { init(_ timeValue: TimeValue) { -#if compiler(>=6.2) +#if compiler(>=6.3) self = SuspendingClock().systemEpoch.advanced(by: Duration(timeValue)) #else self = unsafeBitCast(Duration(timeValue), to: SuspendingClock.Instant.self)