chronos-timer
v1.1.2
Published
Accurate and easy to use timer / countdown
Downloads
18
Maintainers
Readme
chronos-timer
Accurate and easy to use timer / countdown
Installation
npm i chronos timer
Usage
Class: Chronos
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()
.