Static Propertypackage-benchmark 1.27.2Benchmark
now
The current continuous instant.
BenchmarkClock.swift:85static var now: BenchmarkClock.Instant { get }
Other members in extension
Types
struct Instant
A continuous point in time used for
BenchmarkClock
.
Type members
Instance members
var minimumResolution: Swift.Duration
The minimum non-zero resolution between any two calls to
now
.var now: BenchmarkClock.Instant
The current continuous instant.
func sleep(until: Instant, tolerance: Swift.Duration?
) async throws Suspend task execution until a given deadline within a tolerance. If no tolerance is specified then the system may adjust the deadline to coalesce CPU wake-ups to more efficiently process the wake-ups in a more power efficient manner.