Active filter

Categoryjavascript

Only matching posts are currently shown.

Reset filter · Show all posts
Shown beside posts when enough screen space is available.

[AskJS] Using console.time to calculate the time it takes a block of code to execute

Hi All, I have recently become interested in the web performance side of web development. I’m wondering if the way I’m calculating the amount of time it takes a block of code to run correct and trustworthy? Essentially what I do is wrap a console.time(), and a console.timeEnd around a block of code like so. […]