*BSD News Article 50421


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!news2.acs.oakland.edu!news1.oakland.edu!newsxfer.itd.umich.edu!newsfeed.internetmci.com!news.sprintlink.net!in1.uu.net!not-for-mail
From: kyle_jones@wonderworks.com
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Time goes too fast.  How do I slow it down ?
Date: 1 Sep 1995 17:29:31 -0400
Organization: UUNET Technologies Inc, Fairfax VA USA
Lines: 18
Sender: kyle@uunet.uu.net
Message-ID: <427tvr$p1j@wendy-fate.uu.net>
References: <422rnv$5on@dei.calldei.com>
NNTP-Posting-Host: wendy-fate.uu.net

David A. Lee <dave@dei.calldei.com> wrote:
 > My system clock seems to be speeding ahead by about 5 minutes
 > a day.  Is due to my hardware clock haveing problems or is
 > this a software problem?

Probably hardware.  I have two PCs.  One keeps time like a
wuality wristwatch.  The other drifts horribly, twenty or thirty
every few days, forward and backward.

If you have an IP connection, get the NTP software and run
ntpdate every hour, or whenever you bring up your link.

If your clock drifts a constant amount per day you should be able
write a short program that uses adjtime to slow the clock down.
Run it regularly and the clock with keep better time.

ntpdate is the best solution, though.  It even keeps the PC with
the bad clock within a second of the stratum 2 server of my ISP.