@bedrock-oss/bedrock-boost
    Preparing search index...

    Class Timings

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

    Index

    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

      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

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