Interface BackendStopwatch

A service that exposes the back-end's Stopwatch to clients via the remote API. If you do not need this service then bind or re-bind the NullBackendStopwatch implementation to this service interface.

interface BackendStopwatch {
    start(name, options?): Promise<number>;
    stop(measurement, message, messageArgs): Promise<void>;
}

Implemented by

Methods

Methods

  • Stop a measurement previously started and log in the back-end a measurement of its duration relative to the back-end's timeline.

    Parameters

    • measurement: number

      token identifying a measurement previously started

    • message: string

      a message to log

    • messageArgs: any[]

      optional arguments to the message

    Returns Promise<void>