A simple way to time the execution of events is to call the console function for timing:

console.time('Timer Start');
  // code goes in here
console.timeEnd('Timer Complete');

This will output the time in seconds, like:

0.598472

#

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

Archives
Categories