log-ms

0.0.2 • Public • Published

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

API

logms()

Instance

start()

Start the logms. Returns the instance.

end()

Stop the logms. Returns the instance.

License

MIT © Bu Kinoshita

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i log-ms

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bukinoshita