RE: GetTickCount problem P4 hyperthread
From: ERROR (ERROR_at_discussions.microsoft.com)
Date: 10/28/04
- Next message: Jeff Partch [MVP]: "Re: Run time link error! New to version 7 .NET"
- Previous message: Dark74: "GetTickCount problem P4 hyperthread"
- In reply to: Dark74: "GetTickCount problem P4 hyperthread"
- Messages sorted by: [ date ] [ thread ]
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
> ------------------------------------------------------------------------
>
>
- Next message: Jeff Partch [MVP]: "Re: Run time link error! New to version 7 .NET"
- Previous message: Dark74: "GetTickCount problem P4 hyperthread"
- In reply to: Dark74: "GetTickCount problem P4 hyperthread"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|