interface Timer {
    elapsed?: Elapsed;
    intervalMs: number;
    isPeriodic: boolean;
    isRunning: boolean;
    name: string;
    systemId: unknown;
    utility: boolean;
    start(): Timer;
    stop(): Timer;
    Callback: (() => any);
}

Properties

elapsed?: Elapsed

Amount of time interval has been active (diagnostics)

intervalMs: number

Interval (diagnostics)

isPeriodic: boolean

Is the timer periodic? (diagnostics)

isRunning: boolean

Is true if this timer is running.

name: string

Name (diagnostics)

systemId: unknown

System ID (diagnostics)

utility: boolean

Set to true to indicate the timer should not prevent program exit

Methods

  • Starts this timer, chainable.

    Returns Timer

  • Stops this timer, chainable.

    Returns Timer