chronos-timer
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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 since chronos.start(), emits -1 when countdown complete.
  • chronos.getCentsSync() <number> Centiseconds elapsed since chronos.start().

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i chronos-timer

    Weekly Downloads

    2

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • adm91