There's now +4 hours of video content on ModernDevTools.com!

«   Previous tip Next tip   »

Chrome DevTools: Get speed insights into your JS code with console.time

20th November 2015
Get speed insights into your JS code with console.time

Try running this code in the Console Panel:

console.time('My time #1');
console.timeEnd('My time #1'); //My time #1: 0.003ms

As part of the Console API, you can time how long your JavaScript functions take to execute.

«   Previous tip Next tip   »

Sign up to receive a developer tip, in the form of a gif, in your inbox each week