Interesting method to getting current timestamp:
var I = +new Date;
I've always used: var I = (new Date).getTime(); var I = +new Date;
I've always used: var I = (new Date).getTime(); var I = Number(new Date);I did this while optimizing performance of a fast-paced game in Javascript (LineRage). Profiling showed that getting timestamps was responsible for significant portion of the processing time. I also ended up switching to a global clock approach.
Unfortunately I no longer have the original benchmark code/results. Would be happy to have someone replicate it.