Skip to content

performance.now() doesn't work in snap server #2476

Answered by FlaviuWeb3
porco-rosso-j asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @porco-rosso-j Performance.now is not available in Snaps. Also please note that 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+).
See -> https://stackoverflow.com/questions/30795525/performance-now-vs-date-now

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FrederikBolding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants