GetTickCount problem P4 hyperthread

  • Thread starter Thread starter Dark74
  • Start date Start date
D

Dark74

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


-
Dark7
 
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


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
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.
 
Back
Top