Track The Time Of Some Of Your JS Code With Console.Time
Topic | Source |
---|---|
๐ฅ๏ธ Tech | console: time() method - Web APIs - MDN |
If you want to figure out which part of your code is taking so long or have another reason to check the computing time of some of your code, you can use console.time()
to start a timer. Use console.timeEnd()
to stop the timer, and the time passed will be printed to the console.