Join Slack
the WASMjs target doesnt seem to have `measureNanoTime`, what is a good alternative for at least gra...
# webassembly
a
Adam Brown
02/14/2024, 11:03 PM
the WASMjs target doesnt seem to have
measureNanoTime
, what is a good alternative for at least grabbing system time?
e
ephemient
02/14/2024, 11:58 PM
https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/High_precision_timing
a
Adam Brown
02/15/2024, 12:34 AM
thanks!
Adam Brown
02/15/2024, 12:35 AM
strangely it seems to only be returning millisecond resolution
e
ephemient
02/15/2024, 12:43 AM
for security reasons, high-precision timers have limited resolution on web. look further in MDN or other docs
a
Adam Brown
02/15/2024, 5:00 AM
got ya, I see now, thanks!
Adam Brown
02/15/2024, 5:02 AM
MDN docs are surprisingly readable, I'm so used to gradle docs 😛
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by