Home All Groups Group Topic Archive Search About
Author
11 Jan 2009 12:05 PM
chuckfa
Hi Group,

My app polls a piece of hardware via a timer (1 second interval).  When the
app is running Windows XP's system clock runs fast by ~ 10 seconds every 20
minutes.  Has anyone seen this issue before or have an idea for solutions?
Thanks!!
--
Regards,
Chuck

Author
14 Jan 2009 4:26 AM
expvb
Try using this free software, which syncs to atomic clocks, but keeps a log,
so you can see what effects your software has:

http://www.gregorybraun.com/WebTime.html

I am not sure why your code would affect the system clock. I once had a
routine that calls an API function that blocks for about 50 seconds. When I
compare the return value of GetTickCount before and after the blocking call,
I get the same value, when I do a DoEvents, GetTickCount returns the correct
time. It's like each thread has it's own copy of TickCount. Try calling the
non-Ex versions of the functions to see if that makes any difference.
Author
14 Jan 2009 11:14 AM
chuck
Yeah, I verified the speed up by syncing my system clock with the time
server, then running my app for 20 minutes.  A comparison to the NIST clock
showed the system time running fast.  I then  did the same test without my
app running and the system clock kept it's timing synced with the NIST
clock.  I will just have to rewrite the code knowing now that this oddity
exists......

Thanks everyone.

Regards,
Chuck

Show quoteHide quote
> Try using this free software, which syncs to atomic clocks, but keeps a
> log, so you can see what effects your software has:
>
> http://www.gregorybraun.com/WebTime.html
>
> I am not sure why your code would affect the system clock. I once had a
> routine that calls an API function that blocks for about 50 seconds. When
> I compare the return value of GetTickCount before and after the blocking
> call, I get the same value, when I do a DoEvents, GetTickCount returns the
> correct time. It's like each thread has it's own copy of TickCount. Try
> calling the non-Ex versions of the functions to see if that makes any
> difference.
>
>
Author
25 Mar 2009 1:04 PM
Bob Bobson
Have a look here...
http://support.microsoft.com/kb/821893

Bantu Bob

*** Sent via Developersdex http://www.developersdex.com ***