Published
- 1 min read
javascript time execution
The solution for this is noted below
javascript time execution
Solution
console.time('My Descriptive Title')
doSomething() // <--- the function that you want to time
console.timeEnd('My Descriptive Title') // Argument has to match
// My Descriptive Title: 8917.283ms
Try other methods by searching on the site. That is if this doesn’t work