Unable to get Processor Speed in Device
Posted
by
mukesh
on Stack Overflow
See other posts from Stack Overflow
or by mukesh
Published on 2010-12-23T08:44:58Z
Indexed on
2010/12/23
8:54 UTC
Read the original article
Hit count: 210
Hi i am using QueryperformanceFrequency to get the No of cycle i.e processor speed. But it is showing me the wornd value. It is written in the specicfication is the Processor is about 400MHz, but what we aregetting through code is something 16MHz.
Please porvide any pointer :
The code for Wince device is:
enter code here
LARGE_INTEGER FrequnecyCounter;
QueryPerformanceFrequency(&FrequnecyCounter);
CString temp;
temp.Format(L"%lld",FrequnecyCounter.QuadPart)`AfxMessageBox(temp);
Thanks,
Mukesh
© Stack Overflow or respective owner