Gary
Fri Mar 10 14:35:35 CST 2006
You can't know the frequency if it is changing.
--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
-
http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@mvps.org
"Scherbina Vladimir" <vladimir.scherbina@XgmailY.comZ> wrote in message
news:eDNFBOFRGHA.1576@tk2msftngp13.phx.gbl...
> Gary, if you know clock frequency then having number of clocks you can
> calculate time
>
> --
> Vladimir
>
http://spaces.msn.com/vladimir-scherbina/
>
> "Gary Chanson" <gjchanson@_NO_SPAM_comcast.net> wrote in message
> news:e$vLpnCRGHA.2436@TK2MSFTNGP11.phx.gbl...
> > RDTSC is in CPU cycles, not milliseconds and it maybe difficult or even
> > impossible (think of variable frequency clocks) to convert it to
> > milliseconds.
> >
> > --
> >
> > -GJC [MS Windows SDK MVP]
> > -Software Consultant (Embedded systems and Real Time Controls)
> > -
http://www.mvps.org/ArcaneIncantations/consulting.htm
> > -gchanson@mvps.org
> >
> >
> > "Scherbina Vladimir" <vladimir.scherbina@XgmailY.comZ> wrote in message
> > news:ObEZw6BRGHA.424@TK2MSFTNGP12.phx.gbl...
> >> or rtdsc.
> >>
> >> --
> >> Vladimir
> >>
http://spaces.msn.com/vladimir-scherbina/
> >>
> >> "Christian ASTOR" <castorix@club-internet.fr> wrote in message
> >> news:On7QxBBRGHA.1096@TK2MSFTNGP11.phx.gbl...
> >> > shahul wrote:
> >> >
> >> >> As I need to determine the speed of my win32 console application, can
> >> >> you
> >> >> give me the API to find the system time in milliseconds.
> >> >
> >> > QueryPerformanceFrequency()-QueryPerformanceCounter()
> >>
> >>
> >
>
>