QueryPerformanceCounter - 调整代码 [英] QueryPerformanceCounter -- Timming code

查看:84
本文介绍了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

推荐答案

您好 - 感谢您的回复。它是win / xp - 供应商MSI没有更新的BIOS更新 - 它是一个旧的MOBO - 从2006年开始 - 我想我可以设置亲和力,只需运行1个cpu  - 还有其他工作吗? 

Hello --  Thanks for the reply. It's win/xp -- there are no more BIOS updates from the vendor MSI -- Its an old  MOBO  -- from 2006  -- I guess I could set affinity and just run on 1 cpu  -- are there any other work-a-rounds? 


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆