Hierarchy

  • ClockOptions

Properties

maxFps?: number

Optionally limit the maximum FPS of the clock

onFatalException?: ((e: unknown) => any)

Type declaration

    • (e: unknown): any
    • Optionally define the fatal exception handler, used if an error is thrown in tick

      Parameters

      • e: unknown

      Returns any

tick: ((elapsedMs: number) => any)

Type declaration

    • (elapsedMs: number): any
    • Define the function you'd like the clock to tick when it is started

      Parameters

      • elapsedMs: number

      Returns any