Posts

Showing posts from 2016

Measuring execution time

Image
To measure the time take to run a section of code:

> console.time("toggleSeries");

...

> console.timeEnd("toggleSeries");

Where the parameter is any label you want.

Gives the following output: