The performance.now() method returns a high resolution timestamp in milliseconds.
performance.now()
MDN Reference