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 @@ -139,6 +139,13 @@ extension ContinuousClock: Clock {
139
139
#endif
140
140
}
141
141
142
+ @available ( SwiftStdlib 5 . 7 , * )
143
+ extension ContinuousClock {
144
+ @available ( SwiftStdlib 5 . 7 , * )
145
+ @backDeployed ( before: SwiftStdlib 9999 )
146
+ public var systemEpoch : Instant { Instant ( _value: . seconds( 0 ) ) }
147
+ }
148
+
142
149
@available ( SwiftStdlib 5 . 7 , * )
143
150
@_unavailableInEmbedded
144
151
extension ContinuousClock . Instant : InstantProtocol {
Original file line number Diff line number Diff line change @@ -127,6 +127,13 @@ extension SuspendingClock: Clock {
127
127
#endif
128
128
}
129
129
130
+ @available ( SwiftStdlib 5 . 7 , * )
131
+ extension SuspendingClock {
132
+ @available ( SwiftStdlib 5 . 7 , * )
133
+ @backDeployed ( before: SwiftStdlib 9999 )
134
+ public var systemEpoch : Instant { Instant ( _value: . seconds( 0 ) ) }
135
+ }
136
+
130
137
@available ( SwiftStdlib 5 . 7 , * )
131
138
@_unavailableInEmbedded
132
139
extension SuspendingClock . Instant : InstantProtocol {
You can’t perform that action at this time.
0 commit comments