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

    Install

    npm i log-ms

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • bukinoshita