阅读背景:

调用QueryPerformanceCounter时会发生什么?

来源:互联网 

I'm looking into the exact implications of using QueryPerformanceCounter in our system and am trying to understand it's impact on the application. I can see from running it on my 4-core single cpu machine that it takes around 230ns to run. When I run it on a 24-core 4 cpu xeon it takes around 1.4ms to run. More interestingly on my machine when running it in multiple threads they don't impact each other. But on the multi-cpu machine the threads cause some sort of interaction that causes them to block each other. I'm looking into the exact implications of usin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: