Can you give me a little script example to see how to use console.time?
Sure, check above I’ve already posted it, you wrap your code like it:
console.time('profile');
myMethod();
console.timeEnd('profile');
1 Like
It’s worth mentioning that console.time
and console.timeEnd
are not very accurate. See the last section on this page:
3 Likes