performance.now() vs Date.now()

They both serve different purposes. performance.now() is relative to page load and more precise in orders of magnitude. Use cases include benchmarking and other cases where a high-resolution time is required such as media (gaming, audio, video, etc.) It should be noted that performance.now() is only available in newer browsers (including IE10+). Date.now() is relative … Read more