www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/03/02:40:13

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Mon, 3 Dec 2001 09:34:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Damien Knight <spook AT kmfms DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: RDTSC ?
In-Reply-To: <u0lpbq1krber57@corp.supernews.com>
Message-ID: <Pine.SUN.3.91.1011203093341.14864D-100000@is>
MIME-Version: 1.0
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

On Sun, 2 Dec 2001, Damien Knight wrote:

> As I've been told, RDTSC is a feature of pentium (and up) processers that
> tracks the number of processer cycles completed since the system last
> powered up, making it useful for calculating system uptime - but more
> importantly, it can be used to test code optimization and so on.
> 
> My question : How do I get this value and use in in a DJGPP program?  If
> anyone has a function already written, that'd be great.

I suggest to search the archives of this group for RDTSC, I'm quite
sure such code was posted here at least once.

The archives search facilities are available here:

  http://www.delorie.com/djgpp/mail-archives/

- Raw text -


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