A simple class to measure the time it takes to perform an operation.

Hierarchy

  • Timings

Constructors

Properties

Methods

Constructors

Properties

lastOperation: string
lastTime: number

Methods

  • Begin measuring the time it takes to perform an operation.

    Parameters

    • operation: string

      The name of the operation.

    Returns void

    Remarks

    If another operation is already being measured, the measurement will be ended.

  • End measuring the time it takes to perform an operation and log the result.

    Returns void

    Remarks

    If no operation is being measured, this method will do nothing.