3 ms·
There is a monotonic time source available in JavaScript, though: https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/High_precision_timing https:/
by _flux 2y ago
There is a monotonic time source available in JavaScript, though: https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/High_precision_timing https://developer.mozilla.org/en-US/docs/Web/API/Performance...
As I understand it, the precision of such timers has been limited a bit in browsers to mitigate some Spectre attacks (and maybe others), but I imagine it would still be fine for this purpose.