Timing Processes
If you want to time a process, you can use the console.time()
and console.timeEnd()
utilities specified by the console
Web API. Invoking console.time()
with a label starts a named timer. You can then run the process you want to time. Then invoke console.timeEnd()
with the same label to terminate the timer and see how long the process took.
These functions are implemented in most modern browsers.
See the docs for more details.
Last updated