www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/01/05/12:20:37

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Subject: Re: Performance enhancement for gettimeofday()?
To: djgpp AT delorie DOT com
X-Mailer: Lotus Notes Release 6.5.4 CCH5 September 12, 2005
Message-ID: <OFF86BAC20.A8BCA0CB-ON8725725A.005C40FB-8725725A.005CCBAF@seagate.com>
From: Gordon DOT Schumacher AT seagate DOT com
Date: Fri, 5 Jan 2007 09:53:34 -0700
X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 7.0.1 HF29|March 07, 2006) at
01/05/2007 08:53:48 AM
MIME-Version: 1.0
X-Proofpoint-FWRule: outbound2
X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5446:2.3.11,1.2.37,4.0.164 definitions=2007-01-05_03:2007-01-03,2006-12-29,2007-01-05 signatures=0

Gordon Schumacher/Seagate wrote on 01/04/2007 05:16:32 PM:

# Most of the data returned by the DOS int 21/2C and 21/2A functions can be
# obtained directly from the CMOS, with nothing more than port I/O: that
# will give us everything except the "hundredths" of a second field.  For
# that field, what about installing a interrupt handler to simply increment
# a counter every timer tick, and reset it to zero when the counter reaches
# 91 (signifying five seconds have elapsed)?

In fact, it would not even need to be done with an interrupt handler.  The
first time the function is called, the int21/2C function could be called
in order to determine the hundredths value that DOS is using.  Then the
clock() function could be called to align those two values, and thereafter
the clock() function could be used instead.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019