From owner-freebsd-hackers Thu Nov 2 10:13:20 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from zrtps06s.us.nortel.com (unknown [47.140.48.50]) by hub.freebsd.org (Postfix) with ESMTP id 435AC37B479; Thu, 2 Nov 2000 10:13:13 -0800 (PST) Received: from zrtpd004.us.nortel.com by zrtps06s.us.nortel.com; Thu, 2 Nov 2000 13:00:41 -0500 Received: by zrtpd004.us.nortel.com with Internet Mail Service (5.5.2652.35) id ; Thu, 2 Nov 2000 13:00:41 -0500 Message-ID: From: "Hao Zhang" To: "'freebsd-hackers@FreeBSD.ORG'" , "'freebsd-net@FreeBSD.ORG'" Subject: high speed timestamp counter Date: Thu, 2 Nov 2000 13:00:37 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C044F6.CDC53170" X-Orig: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C044F6.CDC53170 Content-Type: text/plain; charset="iso-8859-1" Hi there, I am trying to read the on board Pentium Time Stamp Counter. Is there an API in Unix that allows me to read it directly? Or some assembly language line that I can drop into my code? I need the high speed counters to profile some code. I don't want to use the classical time API that is provided in -Hao ------_=_NextPart_001_01C044F6.CDC53170 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable high speed timestamp counter

Hi there,

I am trying to read the on board = Pentium Time Stamp Counter. Is there an API in Unix that allows me to = read it directly?

Or some assembly language line that I = can drop into my code?

I need the high speed counters to = profile some code. I don't want to use the classical time API that is = provided in <time.h>


-Hao

------_=_NextPart_001_01C044F6.CDC53170-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message