0.0.2 • Published 7 years ago

log-ms v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

log-ms Build Status

Elegant instance execution time in ms

Install

$ npm install --save log-ms

Usage

const logms = require('log-ms')

const timer = logms()

timer.start()
setTimeout(() => console.log(`cool! ${timer.end()}`), 5000)
// => cool [5s]

Demo

npm.io

API

logms()

Instance

start()

Start the logms. Returns the instance.

end()

Stop the logms. Returns the instance.

License

MIT © Bu Kinoshita