Wondering what’s next for npm?Check out our public roadmap! »

    nano-performance

    0.0.7 • Public • Published

    nano-performance

    An extremely lightweight node module that measures execution time in nanoseconds.

    Created by Agilit-e

    Installation

    Using npm:

    npm install nano-performance
    

    Display output in milliseconds (default):

    const nano = require('nano-performance')
     
    nano.timeStart('Test')
     
    setTimeout(function() {
      nano.timeEnd('Test')
    }, 10)

    Output = Test: 11.086301 ms

    Display output in nanoseconds:

    const nano = require('nano-performance')
     
    nano.timeStart('Test')
     
    setTimeout(function() {
      nano.timeEnd('Test', 'ns')
    }, 10)

    Output = Test: 11086301 ns

    Install

    npm i nano-performance

    DownloadsWeekly Downloads

    116

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    3.17 kB

    Total Files

    4

    Homepage

    agilite.io

    Last publish

    Collaborators

    • avatar