1.0.1 • Published 5 years ago
checkduration
Licence
MIT
Version
1.0.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0
CheckDuration
Get the time taken to execute the provided function
Installation
# using npm
npm install checkDuration
Usage
# using require
const { performancecheck } = require('checkDuration');
# using import
import { performancecheck } from 'checkDuration';
Example
performancecheck( (a:number, b: number) => {
return a*b;
}, [5,100000]
)