Measuring execution time
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:
> console.time("toggleSeries");
...
> console.timeEnd("toggleSeries");
Where the parameter is any label you want.
Gives the following output:
Comments
Post a Comment