home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!agate!stanford.edu!rutgers!rochester!cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!spdcc!merk!fcshome!fredex
- From: fredex@fcshome.UUCP (fred smith)
- Newsgroups: comp.os.coherent
- Subject: ATclock, etc.
- Keywords: clock realtime
- Message-ID: <930103120@fcshome.UUCP>
- Date: 4 Jan 93 04:22:26 GMT
- Organization: What?!? Absolutely none!
- Lines: 36
-
- I'm trying to figure out how Coherent manages the AT's hardware clock.
- It looks as if the command /etc/ATclock can read/write the hardware
- clock. I THINK that the system call stime() sets Coherent's running
- time-counter, i.e., the "system time", although the man page is not
- explicit about exactly WHAT it sets.
-
- Can anybody enlighten me about:
- 1. what actually does stime() do?
- 2. What system service, if any, is there for reading/writing the
- actual hardware clock from within a program?
-
- The reason behind these questions:
-
- A few weeks ago I got a program "adjclock" from the net. This program
- allows you to run it as a daemon, which will periodically tweak the
- system time a bit in order to compensate for inaccurate clocks. It
- uses stime() to do this. I was thinking, however, that it would be
- nice to actually tweak the hardware clock instead (or in addition to
- this), so that the hardware and software clocks won't drift apart.
- I could do "system ("ATclock yymmddhhmm.ss");", but that's rather a
- hack.
-
- This seems like something that a lot of you could use, since I've
- seen a number of complaints on the net about system clocks drifting
- off pretty badly. If I can resolve this problem (and a couple of
- others) I'll gladly redistribute to Coherent folks.
-
- Fred
-
-
- -------------------------------------------------------------------------------
- .---- Fred Smith / Office: 508-663-2524|Home: 617-438-5471
- ( /__ ,__. __ __ / __ : / fredex%fcshome@merk.merk.com
- / / / /__) / / /__) .+' or uunet!merk!fcshome!fredex
- / / (__ (___ (__(_ (___ / :__ BIX: fredex or primerd!fcshome!fredex
- -------------------------------------------------------------------------------
-