How can I get a timestamp in JavaScript?
Something similar to Unix timestamp, that is, a single number that represents the current time and date. Either as a number
For a timestamp with microsecond resolution, there's performance.now:
function time() { return performance.now() + performance.timing.navigationStart; }
This could for example yield 1436140826653.139, while Date.now only gives 1436140826653.
1436140826653.139
Date.now
1436140826653