4 ms·
I was wondering how can I use SharedArrayBuffer to implement the high-resolution timer. It's just consist of a dedicated thread keep incrementing the counter me
by ezoe 9y ago
I was wondering how can I use SharedArrayBuffer to implement the high-resolution timer. It's just consist of a dedicated thread keep incrementing the counter memory on SharedArrayBuffer. Read the counter value in SharedArrayBuffer from other threads and it's effectively a high-resolution timer.
It can achieve 2 ns resolution.