Skip to content

ivanross/multi-timer

Repository files navigation

multi-timer

example:

import { multiTimer } from 'multi-timer'

const timer = multiTimer()
  .pushStep({ duration: 1000, name: 'first' })
  .pushStep({ duration: 2000, name: 'second' })

timer.on('tick', ev => {
  console.log(ev.elapsed, ev.totalElapsed)
})

timer.on('stepchange', ev => {
  console.log(ev.step)
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published