Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stopwatch

Hierarchy

  • Stopwatch

Index

Properties

Accessors

Methods

Properties

Private _running

_running: boolean = false

Private _storedElapsed

_storedElapsed: number = 0

Private _time

_time: number = Date.now()

Accessors

time

  • get time(): number

Methods

restart

  • restart(): void
  • Restarts the timer, but does not affect whether it is running or not. If the timer is stopped, it will remain so after restart is called.

    Returns void

start

  • start(): number

stop

  • stop(): number

Generated using TypeDoc