sleep(until:)

Sleeps on the clock until the given time.

Sleeping.swift:9
@discardableResult func sleep(until time: mach_timespec_t) throws -> mach_timespec_t

Parameters

time

The time to sleep until.

Returns

The time at which the clock was woken up.