Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
a-dub
· 5y ago · 0 comments
surely high precision clocks can be constructed via busy waits or random api calls that hit hardware to do things with fixed latency, no?
Comments
[–]
staticassertion
5y ago
Yes, like the SharedArrayBuffer that browsers disabled. There are probably roughly infinite ways to construct clocks. Closing the obvious leaks has been a stop gap while other mitigation techniques are rolling out, like site isolation.
[–]
silon42
5y ago
All those can be limited, because thankfully JS is not multithreaded (otherwise you could do busy-loop timing).