Subject: Re: Clockticks lost, why ?
To: Michael R Zucca <mrz5149@cs.rit.edu>
From: Thomas Bjorn Andersen <bjorn@daimi.aau.dk>
List: port-mac68k
Date: 01/27/1997 23:56:48
>> Why do I need to catch an interrupt, when it is possible to read the time
>> from a counter that is independant from interrupts?
>> Everytime when the clock gets the processor it will call a routine that
>> reads the counter. A little calculation, and it has the exact time.
>
>Well, I asked this too and I feel silly because the answer is somewhat obvious.
>The RTC chip only has a resolution of 1 second. Certain calls in UNIX present
>time with finer resolution. To emulate that you put a counter on the
>video interrupt which fires every 60th of a second and you have 60th of
>a second resolution.
>

Didn't somebody write a little piece of code that would reset the clock,
based on the RTC chip? I think the idea was to run that program, say every
20 minutes via cron. Of course that wouldn't help if cron read the system
time rather than the RTC, but at least the time would be correct every now
and then :-)

Thomas

--
Thomas Bjorn Andersen - bjorn@daimi.aau.dk /
http://www.daimi.aau.dk/~bjorn/ __________/
_______________________________/
Microsoft? I just say no - friends don't let friends do DOS.