Is there a method with a better resolution than 100us that can get me the total time a thread was working (without the time it was sleeping or waiting).
thanks :)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You could use QueryThreadCycleTime(), it counts cpu cycles. You can't do better than that. Available in Vista and up. It doesn't count sleep nor wait time, I verified on Win7.