1.0.1 • Published 5 years ago

jdo-quick-perf v1.0.1

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
5 years ago

jdo-quick-perf

Log performance super easily and quickly!

const quickPerf = require('./index')

async function hefty(){
    const qp = new quickPerf('Hefty Function')
    await new Promise(res => setTimeout(res,2000))
    qp.log('timeout') // Output: Hefty Function | 'Start' to 'timeout' took 2003.883863999974 millis
    for(let i = 0; i < 1000000; i++){}
    qp.log('loop')  // Output: Hefty Function | 'timeout' to 'loop' took 18.04938800004311 millis
}

hefty()
1.0.1

5 years ago

1.0.0

5 years ago