RE: GetTickCount problem P4 hyperthread

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: ERROR (ERROR_at_discussions.microsoft.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 07:01:05 -0700

try Enviroment::TickCount also...:)

"Dark74" wrote:

>
> Vladimir Nesterovsky wrote:
> > 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: [url]http://www.nesterovsky-bros.com[/url] [/B]
>
> Thank You, That is a good solution yes, and I have to test if the
> behaviour is ok (when I get to my computer at work). GetTickCount
> resolution is not good, but i just has to measure if a hardware device
> respond or not, and I do not need high resolution, a brute fix for my
> problem was to insert Sleep(10) between two tickCount query. What is
> realy bother me is god old GetTickCount can trigger such problems (one
> of my programs returned with serious bugreport, I search and tested in
> any circumstances, the bug does not apear, after that I get a new
> computer to be in the same condition like the client, and the bug was
> there... (somethime negative elapsed time) ... :(....
>
>
>
> --
> Dark74
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>
>



Relevant Pages

  • GetTickCount problem P4 hyperthread
    ... Vladimir Nesterovsky wrote: ... > QueryPerformanceCounter ... > and QueryPerformanceFrequency instead of GetTickCount. ... computer to be in the same condition like the client, and the bug was ...
    (microsoft.public.dotnet.languages.vc)
  • Re: GetTickCount
    ... The GetTickCount retries the number of milliseconds that have ... Zeitmessungen gibt es aber inzwischen genauere Quellen, ... ziemlich sicher das der Counter welcher mit QueryPerformanceCounter ... ausgelesen wird, durch den gleichen Timer wie GetTickCount gefüttert ...
    (de.comp.lang.delphi.misc)
  • Re: how to measure time which expire between two events
    ... Note that GetTickCount counts the amount of ... the values are fairly untrustworthy in terms of time spent in your code. ... QueryPerformanceCounter counts time in your thread. ... So the time returned by GetTickCount can't be trusted ...
    (microsoft.public.vc.mfc)
  • Zeitmessen: QueryPerformanceCounter vs GetTickCount
    ... Ich möchte den Zeitverbrauchn einer Routine messen und bekomme bei der ... GetTickCount 2516 ms?! ... Ganz oben steht: ... Sollte QueryPerformanceCounter eine besondere ...
    (de.comp.lang.delphi.misc)
  • Re: Negative difference between QueryPerformanceCounter values
    ... GetTickCount (in milliseconds) ... one millisesecond) is in fact completely random, causing inconsistent timing ... QueryPerformanceCounter works on their platform. ... Use GetTickCount, that's known to work. ...
    (microsoft.public.pocketpc.developer)