Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 13:00:37 -0500
From:      "Hao Zhang" <zhanghao@nortelnetworks.com>
To:        "'freebsd-hackers@FreeBSD.ORG'" <freebsd-hackers@FreeBSD.ORG>, "'freebsd-net@FreeBSD.ORG'" <freebsd-net@FreeBSD.ORG>
Subject:   high speed timestamp counter
Message-ID:  <E1A4B2CC91EBD1118A510000F80836F80254FD5B@zwdld002.ca.nortel.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #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 <time.h>


-Hao


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>high speed timestamp counter</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi there,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Or some assembly language line that I can drop into my code?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I need the high speed counters to profile some code. I don't want to use the classical time API that is provided in &lt;time.h&gt;</FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">-Hao</FONT>
</P>

</BODY>
</HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1A4B2CC91EBD1118A510000F80836F80254FD5B>