win PaUtil_GetTime implementation doesn't deal with kb q274323 QueryPerformanceCounter issue
The Windows implementation of PaUtil_GetTime (used for a number of timing operations in PA, including stream time in some implementations) uses QueryPerformanceCounter() to provide high-resolution timing information.
There is a documented issue with QueryPerformanceCounter() skipping forward due to a hardware bug on some systems:
"Performance counter value may unexpectedly leap forward"
http://support.microsoft.com/kb/274323
The KB artilce above recommends a workaround that involves checking for skips using GetTickCount.
We should consider doing this (but possibly only for hardware where it is an issue).
There is some example code here:
http://www.koders.com/cpp/fidE7FAB1E8A146083D08E26073544DD864B0EAFA6E.aspx
There is a documented issue with QueryPerformanceCounter() skipping forward due to a hardware bug on some systems:
"Performance counter value may unexpectedly leap forward"
http://support.microsoft.com/kb/274323
The KB artilce above recommends a workaround that involves checking for skips using GetTickCount.
We should consider doing this (but possibly only for hardware where it is an issue).
There is some example code here:
http://www.koders.com/cpp/fidE7FAB1E8A146083D08E26073544DD864B0EAFA6E.aspx
Leave a comment