Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.sys.ibm.pc Subject: Re: How to set clock time? Message-ID: <24dadd52@ralf> Date: 5 Aug 89 12:28:02 GMT Sender: ralf@b.gp.cs.cmu.edu Organization: Carnegie Mellon University School of Computer Science Lines: 30 In-Reply-To: <199@mother.dde.uucp> In article <199@mother.dde.uucp>, kbe@dde.uucp (Kjeld Borch Egevang) wrote: }HJW2@PSUVM.BITNET writes: } }>My AT clone (DTK motherboard, DTK BIOS) has a built-in, battery operated clock }>which is 5 minutes slower per day. I have tried to use setup program to reset }>the clock time but all I could do is to set the current time not the clock }>speed. So, every once in a while, I just set the time to keep it accurate. I } }Write a program setting the hardware-clock and call it from AUTOEXEC.BAT. The }necessary interrupt is described in the recently posted list in An easier solution (the one I use, even though my clock is only slow by eight seconds per day), is to grab AT-CLOCK.ARC from PD1: on SIMTEL20. It contains a program that, when run from AUTOEXEC, will adjust the DOS time based on the elapsed time since the CMOS clock was set and the specified rate of time loss (or gain). Works like a charm, and even adjusts for daylight savings time if you are in the US. Never (well, almost) set your clock again! AT-CLOCK also includes a program that will tell you the rate at which your clock is losing or gaining time, so that you can fine-tune the adjustment. -- UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=-=-=-=- Voice: (412) 268-3053 (school) ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: Ralf Brown 1:129/46 FAX: available on request Disclaimer? I claimed something? Alan Demers: Here is the promised Fast Fourier Transform example. It worked for the two examples I tried, so I'm fairly sure it is correct. Student: Proof by exhaustive testing? Demers: Well, it sure exhausted me.