This problem is same as How to get the output from console.timeEnd() in JS Console?This question was asked in 2012. I want to know if there is a way to get the output on Linux system now. Date.now()doesn't seem to get the exact time as console.timeEnd().
I'd like to be able to get the string returned from console.timeEnd('t') in my Google Chrome Javascript Console.
In this example below, I'd like one variable which would contain "t: 0.276ms"
> console.time('t'); console.timeEnd('t');
t: 0.276ms
< undefined