'Why is QueryPerformanceCounter running at 10 MHz on my Lenovo P51 laptop?' Wild guess, Spectre mitigation ?
The reduced precision isn't what really bothers me though - it's the cost. My measurements suggest that QPC is about 25x as expensive as rdtsc on this laptop - expensive enough to make calling it too frequently a problem.
This article explains some of the reasons why rdtsc might not be used to implement QPC, and I'm curious as to which one applies, and how machines this applies to:
https://docs.microsoft.com/en-us/windows/desktop/SysInfo/acq...