Date: Sun, 3 Jan 1999 10:36:58 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Christian Hofrichter cc: djgpp AT delorie DOT com Subject: Re: timing in u sec range In-Reply-To: <368BE820.57A73CBC@gmx.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 31 Dec 1998, Christian Hofrichter wrote: > I have sloved the problem by reading out the port 0x40. > There you can read a counter, coming from an quartz with 4,77 > Mhz.(14.317.180 Hz) > After a division by 4 you get the counter-rate. The Timer-chip is called > 8253/54. DJGPP has a library function which does all that for you. It is called `uclock'. You get a result that has a 840 nsec granularity.