I\'d like to be able to get the string returned from console.timeEnd(\'t\') in my Google Chrome Javascript Console.
console.timeEnd(\'t\')
In this example below, I\'d like one var
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