elapsed-time
Installation
npm install elapsed-time
Examples
var ElapsedTime = var et = ElapsedTimestart
API
- static
- methods
new
you can use static new instead new keyword
return: ElapsedTime
setDefaultFormatter
function
formatter
constructor
Object
[opts]function
[opts.formatter]
start
return: ElapsedTime
pause
return: ElapsedTime
sleep
number
timeout
return: ElapsedTime
reset
return: ElapsedTime
getRawValue
return: number
getValue
Object
[opts]function
[opts.formatter]
return: number
License
Code released under the MIT license.