Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
公告
This forum offers only peer-to-peer support. Thank you!
Learn more about Developing Games on Intel Graphics
558 讨论

Help on QueryPerformanceFrequency()

j3r3mi
初学者
4,349 次查看
Hi all, this is my first post. Sorry if i'm asking some noob questions. I posted this help in Atom developer forum, but they refer me here. First of all, SORRY if i posted on the wrong forum.

Currently i'm working on some visual embedded system which is using Atom Z530 (1.6GHz)

My idea was to test the execution time of my algorithm on this platform.
I used the QueryPerformanceFrequency() function in "windows.h" to get the clock frequency counter for high precision.

I did a trail on a Dual Core 3.6GHz and this Atom.
Here are the results
1) 360019000 ~ 3.6GHz for the Dual core.
2.) 3579545 ~ 3.5MHz for the Atom Z530.

I understand that Atom has this SpeedStep technology. But i disabled it in BOIS and set it to use the Maximum CPU. But i still get same frequency.
May i know what am i missing out?

I'm using Visual studio 2005 pro, Windows XP Sp3

Thanks in advance!!
Jeremy
0 项奖励
1 解答
neni
新分销商 II
4,349 次查看
QueryPerformanceFrequency/Counter are not always using the real time "clocks" of the processor, their implementation varies between different timers in the system (and between OS versions, etc). The only thing which is guarenteed is that for given time difference (for example 1sec) the results of two quesries of QPC will correlate to the same scale of QPF. the actual frequency does not matter.

在原帖中查看解决方案

0 项奖励
1 回复
neni
新分销商 II
4,350 次查看
QueryPerformanceFrequency/Counter are not always using the real time "clocks" of the processor, their implementation varies between different timers in the system (and between OS versions, etc). The only thing which is guarenteed is that for given time difference (for example 1sec) the results of two quesries of QPC will correlate to the same scale of QPF. the actual frequency does not matter.
0 项奖励
回复