Date: Thu, 19 Sep 2002 15:18:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Sisco, Michael" cc: "Djgpp (E-mail)" Subject: RE: Fw: uclock() within an interrupt handler In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 19 Sep 2002, Sisco, Michael wrote: > At startup, I spend one second and use uclock() together with the RDTSC > macro (read > time stamp counter) to quite accurately calculate the processor speed. I > then use RDTSC any time I need a precise time within my interrupt handler. > This seems > to work very well (with the added benefit that RDTSC is significantly faster > than > uclock()). > > Do you see any problems with this approach? Sounds okay.