Home Reference Source Repository
import DispatchTime from 'jscenekit/js/Dispatch/DispatchTime.js'
public class | source

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.

See:

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

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

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.

Return:

DispatchTime

See:

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:

NameTypeAttributeDescription
uptimeNanoseconds UInt64

The number of nanoseconds since boot, excluding any time the system spent asleep.

See:

Public Members