Static Propertyswift 6.0.3_Concurrency
now
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
static var now: ContinuousClock.Instant { get }
static var now: ContinuousClock.Instant { get }
import _Concurrency
struct Instant
A continuous point in time used for ContinuousClock
.
struct ContinuousClock
A clock that measures time that always increments and does not stop incrementing while the system is asleep.
init(from decoder: any Decoder) throws
static func + (lhs: ContinuousClock.Instant, rhs: Duration) -> ContinuousClock.Instant
static func += (lhs: inout ContinuousClock.Instant, rhs: Duration)
static func - (lhs: ContinuousClock.Instant, rhs: Duration) -> ContinuousClock.Instant
static func - (lhs: ContinuousClock.Instant, rhs: ContinuousClock.Instant) -> Duration
static func -= (lhs: inout ContinuousClock.Instant, rhs: Duration)
static func < (lhs: ContinuousClock.Instant, rhs: ContinuousClock.Instant) -> Bool
static func == (lhs: ContinuousClock.Instant, rhs: ContinuousClock.Instant) -> Bool
func advanced(by duration: Duration) -> ContinuousClock.Instant
func duration(to other: ContinuousClock.Instant) -> Duration
func hash(into hasher: inout Hasher)