getTimestamp

getTimestamp()Number

Gets a timestamp that can be used in measuring the time between events. Timestampsare expressed in milliseconds, but it is not specified what the milliseconds aremeasured from. This function uses performance.now() if it is available, or Date.now()otherwise.
Returns:
The timestamp in milliseconds since some unspecified reference time.