On P4 hyperthreaded processor if I get GetTickCount() twice with ver
short time difference (just a few linear code line) somethimes it hape
that the seccond call of GetTickCount() result in smaller value like th
first call, veird? I just invented a time mashine:)..., ok with jokes
has anyone have the same problem? Is there a solution? I am using wi
XP Visual Studio 6.
Thx
Jochen Kalmbach - 27 Oct 2004 21:02 GMT
Hi Dark74,
> On P4 hyperthreaded processor if I get GetTickCount() twice with very
> short time difference (just a few linear code line) somethimes it hapen
> that the seccond call of GetTickCount() result in smaller value like the
> first call, veird? I just invented a time mashine:)..., ok with jokes,
> has anyone have the same problem? Is there a solution? I am using win
> XP Visual Studio 6.
But you do not hit the 49,7 day issue!?
See: GetTickCount
http://msdn.microsoft.com/library/en-us/sysinfo/base/gettickcount.asp

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Vladimir Nesterovsky - 28 Oct 2004 07:03 GMT
> On P4 hyperthreaded processor if I get GetTickCount() twice with very
> short time difference (just a few linear code line) somethimes it hapen
> that the seccond call of GetTickCount() result in smaller value like the
> first call, veird? I just invented a time mashine:)..., ok with jokes,
> has anyone have the same problem? Is there a solution? I am using win
> XP Visual Studio 6.
If you realy need to measure short time use rather QueryPerformanceCounter
and QueryPerformanceFrequency instead of GetTickCount.
--
Vladimir Nesterovsky
e-mail: vladimir@nesterovsky-bros.com
home: http://www.nesterovsky-bros.com