Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

GetTickCount problem P4 hyperthread

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dark74 - 27 Oct 2004 15:46 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.