How to get the output from console.timeEnd() in JS Console?

In Google Chrome 23.0.1262.2 (Official Build 155904) dev, it looks like it's impossible. The only way I found to be able to calculate time with accuracy is to use window.performance.webkitNow()

Here's a simple example:

var start = window.performance.now();
...
var end = window.performance.now();
var time = end - start;

Read more at http://updates.html5rocks.com/2012/08/When-milliseconds-are-not-enough-performance-now


simply you can use

var begin=Date.now();
something here ...;
var end= Date.now();

var timeSpent=(end-begin)/1000+"secs";

this is the simplest way and it will work on any browser not in only chrome