File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,13 @@ extension ContinuousClock: Clock {
125
125
#endif
126
126
}
127
127
128
+ @available ( SwiftStdlib 5 . 7 , * )
129
+ extension ContinuousClock {
130
+ @available ( SwiftStdlib 5 . 7 , * )
131
+ @backDeployed ( before: SwiftStdlib 9999 )
132
+ public var systemEpoch : Instant { Instant ( _value: . seconds( 0 ) ) }
133
+ }
134
+
128
135
@available ( SwiftStdlib 5 . 7 , * )
129
136
extension ContinuousClock . Instant : InstantProtocol {
130
137
public static var now : ContinuousClock . Instant { ContinuousClock . now }
Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ extension SuspendingClock: Clock {
111
111
#endif
112
112
}
113
113
114
+ @available ( SwiftStdlib 5 . 7 , * )
115
+ extension SuspendingClock {
116
+ @available ( SwiftStdlib 5 . 7 , * )
117
+ @backDeployed ( before: SwiftStdlib 9999 )
118
+ public var systemEpoch : Instant { Instant ( _value: . seconds( 0 ) ) }
119
+ }
120
+
114
121
@available ( SwiftStdlib 5 . 7 , * )
115
122
extension SuspendingClock . Instant : InstantProtocol {
116
123
@available ( SwiftStdlib 5 . 7 , * )
You can’t perform that action at this time.
0 commit comments