QueryPerformanceCounter

QueryPerformanceCounter

本文介绍了QueryPerformanceCounter - 调整代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好 -



我正在调用win / sdk函数QueryPerformanceCounter来做时间 - 在某些情况下如何支付b
随着时间的推移超过2次呼叫,未来的呼叫比过去的呼叫价值低
因此,b
$ b $ start = QueryPerformanceCounter



::: 等一段时间



finish = QueryPerformanceCounter



$
那么价值



完成 - 开始¥


小于零 - 这可能吗?



谢谢你

Hello --

I am calling the win/sdk function QueryPerformanceCounter to do timing -- how is
it in some cases that over 2 calls over time that the call in the future has a
lesser value than the one in the past so

start = QueryPerformanceCounter

:::  wait some time

finish = QueryPerformanceCounter


then the value of

finish - start

is less than zero -- is this possible?

Thanks

推荐答案


这篇关于QueryPerformanceCounter - 调整代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 09:35