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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i log-ms

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bukinoshita