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

#

Comments are closed

Archives
Categories