Skip to main content

ClockOptions

Index

Properties

optionalmaxFps

maxFps?: number

Optionally limit the maximum FPS of the clock

optionalonFatalException

onFatalException?: (e: unknown) => any

Optionally define the fatal exception handler, used if an error is thrown in tick


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

tick: (elapsedMs: number) => any

Define the function you'd like the clock to tick when it is started


Type declaration

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


      Parameters

      • elapsedMs: number

      Returns any