0.3.0 • Published 8 years ago
rieussec v0.3.0
Rieussec
A Node.js lib for making stopwatch timers. Rieussec does not have "split" functionality at this time.
API Reference
Rieussec
A rieussec stopwatch object.
Kind: global class
- Rieussec
- new Rieussec(options)
- instance
- .tickRate : Number
- static
new Rieussec(options)
Construct a new Rieussec stopwatch
Param | Type | Description |
---|---|---|
options | Object | Options to initialize the component with |
options.tickRate | Number | How often (in milliseconds) to emit "tick" events, sets tickRate |
rieussec.tickRate : Number
How often (in milliseconds) to emit "tick" events
Kind: instance property of Rieussec
Default: 100
Rieussec.start()
Start the timer.
Kind: static method of Rieussec
Rieussec.pause()
Pause the timer.
Kind: static method of Rieussec
Rieussec.reset()
Reset the timer.
Kind: static method of Rieussec
Rieussec.setMilliseconds()
Manually set the timer (in milliseconds).
Kind: static method of Rieussec