sleep(for:)

Sleeps on the clock for the given time.

Sleeping.swift:20
@discardableResult func sleep(for time: mach_timespec_t) throws -> mach_timespec_t

Parameters

time

The time to sleep for.

Returns

The time at which the clock was woken up.