www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/03/03:39:38

Date: Sun, 3 Jan 1999 10:36:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Christian Hofrichter <ChristianHofrichter AT gmx DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: timing in u sec range
In-Reply-To: <368BE820.57A73CBC@gmx.de>
Message-ID: <Pine.SUN.3.91.990103103639.12860B-100000@is>
MIME-Version: 1.0
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.

- Raw text -


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