TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ian Moote
from: Will Honea
date: 1999-12-01 21:52:01
subject: Clocked!

Ian Moote wrote to JONATHAN DE BOYNE POLLARD on 12-01-1999

IM> DOS uses internal counters. It only reads the RTC when it boots.
IM> It only  writes the RTC when you set the system time. 

For the sake of completeness, the RTC is also sync'd by a
read/write/read anytime the set clock API's are called.  There are also
several int 21 calls that force a read of the RTC and reset the
internal timer to reflect the number of (computed) clock ticks since
midnight.  Some of these are in fact the source of the DOS problem of
not incrementing the day if you hit the clock routines just right
during the midnight roll-over.  To this day there are problems with DOS
sessions playing games with time set/read at mifnight under OS/2 (and
NT for that matter).

Will Honea 
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)

SOURCE: echoes via The OS/2 BBS

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™.