Elegant instance execution time in ms
Elegant instance execution time in ms
$ npm install --save log-ms
const logms = require('log-ms')
const timer = logms()
timer.start()
setTimeout(() => console.log(`cool! ${timer.end()}`), 5000)
// => cool [5s]
Start the logms
. Returns the instance.
Stop the logms
. Returns the instance.
MIT © Bu Kinoshita