measure-function-time
v1.0.0
Published
measure function time
Downloads
15
Readme
Measure Function Time
Measure js function time.
Usage
npm i measure-function-time
const measure = require('measure-function-time')
const milliseconds = measure(() => {
// some time consuming work
// ...
})
API
measure
const measure = require('measure-function-time')
(fn, ...args) => milliseconds
measureAsync
const measure = require('measure-function-time')
const measureAsync = measure.async
(fn, ...args) => promise => milliseconds
License
MIT