🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.hardware
Article #3841

Re: pc clock

#3841
From: Andy Champ
Date: Wed, 12 Jun 2002 23:23
44 lines
3573 bytes
Barry Watzman wrote:

> Masking interrupts -- even forever -- won't slow the clock down in 
> exactly the way that you suggest.  The clock chip keeps time completely 
> independently of the computer (imagine that it was an RS-232 serial 
> external clock -- the only thing that the computer does is read it, and 
> occasionally set it, but the clock runs completely independently of the 
> computer).  Although it's not an external serial clock, that's 
> effectively how it works.
> 
> The way that the computer keeps time is that there are two clocks -- the 
> actual "clock" ("hardware clock", if you prefer) and a "software clock" 
> maintained by the computer (BIOS and/or operating system) only while 
> it's running.  The software clock is what you see, what is used for 
> date/time stamping, what appears in the system tray.  It's updated by a 
> hardware generated interrupt that "ticks" 20 times per second 
> (approximately).  If you disable interrupts, you WILL lose time on the 
> software clock and it will not "catch up" on it's own when interrupts 
> are re-enabled.  HOWEVER, the software clock is reset every time that 
> you reboot the computer, so while it would temporarily lose time, it 
> would be reset the next time that you started the computer.
> 
> If you are losing time over a period of days, assuming that you do 
> reboot the computer from time to time, then it's the hardware clock -- 
> the real, hardware, battery powered, crystal controlled clock -- that's 
> losing time, and this has nothing to do with interrupts being on or off. 
> Turning off interrupts will cause a loss of time, but only until the 
> next reset of the computer.  Interrupts will not cause a permanent loss 
> of time.
> 
> 
Barry,

(1) it's only 18.2 Hz.  I have no idea why that frequency.
(2) some operating systems have a nasty habit of spotting that the two 
are out of step, and "correcting" the CMOS clock.  I don't recall which 
ones.


Andy.


-- 
My real mail is Andy at Champ dash family dot freeserve dot net
Technical Details
Message-ID: <3D07D80A.7060001@read.my.sig>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!kibo.news.demon.net!demon!news-hub.cableinet.net!blueyonder!diablo.theplanet.net!news.theplanet.net!not-for-mail
References: <ae5bbn$87l$1@news5.jaring.my> <3D0681F0.8050301@read.my.sig> <3D06A3D6.9080602@neo.rr.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff9b0,2e46e310bc4e9bd8
X-Google-Attributes: gidff9b0,public
X-Google-Thread: f5f89,7a1401a6e40bdf58
X-Google-Attributes: gidf5f89,public
X-Google-Thread: 10483c,2e46e310bc4e9bd8
X-Google-Attributes: gid10483c,public
X-Google-Thread: 1011f8,2e46e310bc4e9bd8
X-Google-Attributes: gid1011f8,public
X-Google-ArrivalTime: 2002-06-12 15:23:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!kibo.news.demon.net!demon!news-hub.cableinet.net!blueyonder!diablo.theplanet.net!news.theplanet.net!not-for-mail
From: Andy Champ <andy.champ@read.my.sig>
Newsgroups: alt.comp.hardware,alt.comp.periphs.mainboard.asus,alt.comp.periphs.mainboard.giga-byte,jaring.pcbase
Subject: Re: pc clock
Date: Wed, 12 Jun 2002 23:23:54 +0000
Lines: 45
Message-ID: <3D07D80A.7060001@read.my.sig>
References: <ae5bbn$87l$1@news5.jaring.my> <3D0681F0.8050301@read.my.sig> <3D06A3D6.9080602@neo.rr.com>
NNTP-Posting-Host: modem-594.blastoise.dialup.pol.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news8.svr.pol.co.uk 1023920628 130 217.135.44.82 (12 Jun 2002 22:23:48 GMT)
NNTP-Posting-Date: 12 Jun 2002 22:23:48 GMT
X-Complaints-To: abuse@theplanet.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: en-gb