DispatchTime
DispatchTime represents a point in time relative to the default clock with nanosecond precision. On Apple platforms, the default clock is based on the Mach absolute time unit.
Static Member Summary
Static Public Members | ||
public static get |
You can pass this value to methods that schedule work to have the system wait indefinitely for a particular event to occur or condition to be met. |
Static Method Summary
Static Public Methods | ||
public static |
now(): DispatchTime Returns the current time. |
Constructor Summary
Public Constructor | ||
public |
constructor(uptimeNanoseconds: UInt64) On Apple platforms, this clock is the same as the value returned by mach_absolute_time when converted into nanoseconds. |
Member Summary
Public Members | ||
public get |
uptimeNanoseconds: UInt64 |
Static Public Members
public static get distantFuture: DispatchTime source
You can pass this value to methods that schedule work to have the system wait indefinitely for a particular event to occur or condition to be met.
Static Public Methods
Public Constructors
public constructor(uptimeNanoseconds: UInt64) source
On Apple platforms, this clock is the same as the value returned by mach_absolute_time when converted into nanoseconds.
Params:
Name | Type | Attribute | Description |
uptimeNanoseconds | UInt64 | The number of nanoseconds since boot, excluding any time the system spent asleep. |