QueryPerformanceCounter の例を見つけました。
http://advancedcppwithexamples.blogspot.com/2009/08/measuring-elapsed-time-in-c-using_21.html
この例では、QueryPerformanceCounter で 100 ミリ秒のスリープを測定し、79 ミリ秒しか報告していません。
睡眠がそれほど不正確である理由はありますか?
QueryPerformanceCounter の例を見つけました。
http://advancedcppwithexamples.blogspot.com/2009/08/measuring-elapsed-time-in-c-using_21.html
この例では、QueryPerformanceCounter で 100 ミリ秒のスリープを測定し、79 ミリ秒しか報告していません。
睡眠がそれほど不正確である理由はありますか?