Re: gettickcount returns a negative number???
- From: erewhon@xxxxxxxxxx (J French)
- Date: Fri, 26 Aug 2005 11:39:55 +0000 (UTC)
On Thu, 25 Aug 2005 10:57:05 -0700, "Sam Hobbs"
<samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>"J French" <erewhon@xxxxxxxxxx> wrote in message
>news:430dca8e.20117134@xxxxxxxxxxxxxxxxxxxxxxx
>> On Wed, 24 Aug 2005 20:44:40 -0700, "Sam Hobbs"
>> <samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>>>"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
>>>news:%23bWPHIRqFHA.3720@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>>> Have you not considered that before recommending it?
>>
>>>I assume then that you don't have an answer to the question of why
>>>QueryPerformanceCounter is inappropriate.
>>
>> Well, simplistically, GetTickCount is the time you have been alive
>> QueryPerformanceCounter is your rate of heart beat
>> Apples and Oranges
>QueryPerformanceFrequency is the heart beat, correct?
To be fair, what I said was totally misleading
QueryPerformanceCounter is fairly similar to GetTickCount
- except it inceases a lot faster
- its rate of increase depends on the hardware
- which means that athough the 'number' is larger, it will potentially
wrap a lot quicker, and its wrap time will vary from machine to
machine - the faster the timer - the quicker the wrap
It really is not suitable for solving OP's problem
- it introduces a whole new load of problems
The best solution that I can think of is to use GetSystemTime which
has the advantage of being in UTC
.
- References:
- gettickcount returns a negative number???
- From: pithhelmet
- Re: gettickcount returns a negative number???
- From: Sam Hobbs
- Re: gettickcount returns a negative number???
- From: Karl E. Peterson
- Re: gettickcount returns a negative number???
- From: Sam Hobbs
- Re: gettickcount returns a negative number???
- From: Karl E. Peterson
- Re: gettickcount returns a negative number???
- From: Sam Hobbs
- Re: gettickcount returns a negative number???
- From: J French
- Re: gettickcount returns a negative number???
- From: Sam Hobbs
- gettickcount returns a negative number???
- Prev by Date: Re: What is the fastest way to determine if folder has subfolders or not!?
- Next by Date: Re: gettickcount returns a negative number???
- Previous by thread: Re: gettickcount returns a negative number???
- Next by thread: Re: gettickcount returns a negative number???
- Index(es):
Relevant Pages
|