Is there a performance impact from calling QueryPerformanceCounter over a less high-resolution timing method in Windows?
Is there a performance impact from calling QueryPerformanceCounter over a less high-resolution timing method
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although old, this Dr Dobb’s article gives a nice summary of your options and their costs, pros and cons (see the tables right at the end), including QPC.
TBH, to get real timings for your situation, use a profiler (like AMD’s CodeAnalyst) or something like Dr Fog’s performance monitor(site, which also has some other things of use, depend how far you want to go into the hole of ‘how much will this call/instruction/action cost’).