The SystemClock that gives real time and schedules callbacks. As opposed to the test/MockClock.MockClock that is used for testing.

Implements

Methods

  • requests that the callback be executed before the next repaint.

    Parameters

    • callback: (() => void)

      the function to be called

        • (): void
        • Returns void

    Returns number

    the request ID

  • schedules a callback to be executed in the future.

    Parameters

    • callback: (() => void)

      the function to be called

        • (): void
        • Returns void

    • delay_ms: number

      number of milliseconds to wait before executing the callback

    Returns number

    the ID of the callback

  • Returns the current time as given by the system clock, in seconds.

    Returns number

    the current time as given by the system clock, in seconds

Generated using TypeDoc