Mail Archives: djgpp/2001/02/16/01:25:56
> From: "Rob Kramer" <robk AT cyberway DOT com DOT sg>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 16 Feb 2001 11:48:33 +0800
>
> My application shows a clock on a graphics screen, amongst other things.
> Recently I've had a problem that on some devices (after 2.5 years of perfect
> operation) the clock starts speeding up mysteriously.
What do you mean by ``devices''? Does that mean this happens on some
PCs but not on others?
> My program gets the time from the time() call, which ultimately gets it from
> Int. 0x21 function 0x2a/0x2c as far as I can see in the DJGPP sources.
This is true.
> Anybody has a clue what might cause the clock to speed up? The weird thing
> is that if I go back to DOS, the system time is perfectly OK.
``Go back'' here means that you just exit the program? You don't
reboot, do you?
> Doesn't the DOS time command use int 21 as well?
Yes, it does.
> There's only one RTC, right.. If I
> start my application again, it's fine (but only for a few hours/days).
Try to use `gettimeofday' and compare its output to what `time'
produces. Perhaps it will tell you something.
- Raw text -