chronos-timer
Accurate and easy to use timer / countdown
Installation
npm i chronos timer
Usage
Chronos
Class: new Chronos([millisecons])
-
milliseconds
<number> Countdown time, if not provided it will behave like a stopwatch.
Instance methods
-
chronos.start()
<void> -
chronos.pause()
<void> -
chronos.reset()
<void> -
chronos.getCents()
<Observable<number>> Centiseconds elapsed sincechronos.start()
, emits -1 when countdown complete. -
chronos.getCentsSync()
<number> Centiseconds elapsed sincechronos.start()
.