performance-check
v1.0.2
Published
This time consume function require two parameter, one is start time and other end of time, and these can be between line of code, where time consume need to be check
Downloads
2
Maintainers
Readme
#This is an performance check package. This time consume function require two parameter, one is start time and other end of time, and these can be between line of code, where time consume need to be check
function prinCount(count) { let startTime = new Date(); for (let i = 1; i <= count; i++) { console.log(i); } let endTime = new Date(); console.log('End Time in ms: ',timeConsume(startTime, endTime)); } console.log(prinCount(100))
It use to check time consume from start of the statment to end of the statment