Class StatisticsInternal

Manages a set of timers.

Remarks

The main objective of Statistics is to log these timers. You can disable statistics to minimize their impact on performance.

Hierarchy

  • Statistics

Constructors

Properties

enabled: boolean = false

If false, the timers do not measure the performance.

name?: string

The statistics name, for logging purposes.

Methods

  • Checks if a timer with the specified name already exists.

    Parameters

    • name: string

      The timer's name.

    Returns boolean

    true if a timer with name already exists; false otherwise.

  • Prints all values to the console.

    Parameters

    • Optional header: string

      Optional header line.

    • Optional footer: string

      Optional footer line.

    Returns void

Generated using TypeDoc