4 ms·
> Microsoft documents "QueryPerformanceCounter" as using rdtsc in most cases. https://docs.microsoft.com/en-us/windows/desktop/dxtecharts/.. https://docs.micros
by vardump 8y ago
> Microsoft documents "QueryPerformanceCounter" as using rdtsc in most cases. https://docs.microsoft.com/en-us/windows/desktop/dxtecharts/.. https://docs.microsoft.com/en-us/windows/desktop/dxtecharts/....
And the cases when it doesn't is when it's running on more than two CPU sockets. Then it'll fall back on other timers that can take even microseconds to query.