Using QueryPerformanceCounter?
Using QueryPerformanceCounter?
This >link< argues against it.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Yes, there is a reliability problem and it's acknowledged by MS. In this link they explain it and how to ensure it doesn't impact your program:
http://support.microsoft.com/default.as ... S;Q274323&
The link you posted points out the really desirable aspect of QPC - microsecond accuracy, unattainable via timeGetTime, which can only get down to millisecond precision. MS's recommended workaround is easy to implement and with it applied, QPC is pretty bulletproof, there shouldn't be any reason not to use it.
http://support.microsoft.com/default.as ... S;Q274323&
The link you posted points out the really desirable aspect of QPC - microsecond accuracy, unattainable via timeGetTime, which can only get down to millisecond precision. MS's recommended workaround is easy to implement and with it applied, QPC is pretty bulletproof, there shouldn't be any reason not to use it.
BERESHEIT