GetTickCount

j.munk_at_XremoveXthisXmaccor.com
Date: 01/26/04


Date: Mon, 26 Jan 2004 10:57:34 +0100

Hi,

I have a couple of application with some timing based on the "GetTickCount"
API call. Since this function counts milliseconds since the PC was turned on
and is a DWord it will roll over every 49.7 days. I would like to check this
but rather than having my PC to run continously for 49.7 days, I wonder if
there is anywhere where this number can be changed. I.e. so I can set it
close and then see what happens with my programs when it rolls over.

Jens.



Relevant Pages

  • Re: Using GetProcessTimes
    ... DWORD milliseconds; ... return GetTickCount() - milliseconds; ... So for that i am using this api. ...
    (microsoft.public.vc.mfc)
  • Re: SetTimer() question
    ... Of course, jiffies roll over ... > GetTickCount() assigned to start is 0xFFFFFF00 and "HowLong" is passed ... > get the desired elapsed time. ...
    (microsoft.public.vc.mfc)
  • Re: GetTickCount
    ... > and is a DWord it will roll over every 49.7 days. ... Write your own GetTickCount that can return any value ... nRes:= MyUtils.GetTickCount; ...
    (borland.public.delphi.nativeapi)
  • Re: Vista Premium crash after auto vista update & installation
    ... visible for milliseconds and then reboots. ... & install it again? ... Roll back with 'repair a computer' using installation cd. ...
    (microsoft.public.windowsupdate)
  • Re: SetTimer() question
    ... For instance, imagine the value of ... GetTickCount() assigned to start is 0xFFFFFF00 and "HowLong" is passed ... The far WORSE case, however, would be if GetTickCount DID roll over, ... get the desired elapsed time. ...
    (microsoft.public.vc.mfc)