TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Alan Clifford
from: Peter Fitzsimmons
date: 1996-07-02 13:48:32
subject: Detecting the clock has been altere

AC> Next stage:

 AC> I want to automatically detect if the clock has changed.  Under Dos I am 
 AC> thinking about a TSR that hooks the interrupt that 
 AC> updates the RTC.  I suspect that if I ran this in an 
 AC> OS/2 Dos session, the operating system would just fall 
 AC> about laughing!  So I need an OS/2 text mode program 
 AC> that detects the clock has been changed and I don't 
 AC> have a clue where to start.

Installing a hook in a TSR (or someting similar under OS/2) strikes me as a
big waste of CPU cycles -- all day long -- why don't you just set the clock
each time you get mail,  whether you need to or not?

This is what I do now.  Each time slipppm gets a connection, I use
TIME868.EXE to get the real time from an atomic clock.  PC clocks are very
inaccurate;  it is rare that time868 does not adjust my clock by a second
or two.


--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.