vankuik.nl RecentChanges 2014-11-24 XML TXT

Javascript

Timing

To do a rough check on the performance of a piece of JavaScript:

  var start = new Date().getTime();
  // Here comes your code
  var end = new Date().getTime();
  alert("Time spent: " + ((end - start) / 1000 ) + " seconds");