an event emitter for integer-based millisecond steps.
var every =
create an event emitter that emits every
optionally provide your own install / uninstall functions for timers.
install functions are expected to return a handle which will then be given to the uninstall function when the timer is destroyed.
you may also provide your own
now function -- it defaults to
returns whether or not the timer is paused.
pauses the timer. the timer will not emit events while paused.
resumes the timer. the timer will start emitting events again.
it will not emit the difference between
resume on the next step.
emit the current rate in milliseconds.
set the current rate in milliseconds.
uninstalls the timer function.