Synxtax

time.func(testFunction);

element.onclick = time.func(function() { 
  // do something
});

element.onclick = testFunction2;
time.event(element, 'click');

time.start('pageLoad');
// page loads and JS runs
time.stop('pageLoad');

time.report(); // show report
      

Time Tests