Date: Fri, 16 Feb 2001 08:16:58 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Rob Kramer" Message-Id: <7458-Fri16Feb2001081657+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <3a8ca532$1@news.starhub.net.sg> (robk@cyberway.com.sg) Subject: Re: System clock problem. References: <3a8ca532$1 AT news DOT starhub DOT net DOT sg> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Rob Kramer" > 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.