Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Stopwatch

Index

Constructors

constructor

  • Starts the Stopwatch

    Parameters

    • digits: number = 2

      The number of digits to appear after the decimal point when returning the a human readable format

    Returns Stopwatch

Properties

Private _digits

_digits: number

Private _startTime

_startTime: bigint

Private _stopTime

_stopTime: null | bigint

Private _stopped

_stopped: boolean

Accessors

getElapsed

  • get getElapsed(): bigint

getElapsedHuman

  • get getElapsedHuman(): string

Methods

Private _start

  • _start(): void

reset

stop

Generated using TypeDoc