Re:Accuracy of JavaScript Time [2008]
by pjscott on Tuesday April 05, 2011 @01:04PM
(#2411709)
On Firefox, the console.time and console.profile functions provided by Firebug do this. On Chrome, you can use the chrome.interval object for the same purpose.
http://getfirebug.com/wiki/index.php/Console_API
https://github.com/eligrey/timer.js