Static Propertypackage-benchmark 1.29.4Benchmark
now
The current continuous instant.
static var now: BenchmarkClock.Instant { get }The current continuous instant.
static var now: BenchmarkClock.Instant { get }import BenchmarkBenchmark allows you to easily create sophisticated Swift performance benchmarks
struct BenchmarkClockstruct InstantA continuous point in time used for BenchmarkClock.
init() var minimumResolution: Duration { get }The minimum non-zero resolution between any two calls to now.
var now: BenchmarkClock.Instant { get }The current continuous instant.
func sleep(until deadline: BenchmarkClock.Instant, tolerance: Duration? = nil) 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.