Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 1997 20:08:42 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        msmith@atrad.adelaide.edu.au, Shimon@i-Connect.Net, FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: High Resolution Timers, How?
Message-ID:  <199706181038.UAA22004@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199706180959.LAA19607@labinfo.iet.unipi.it> from Luigi Rizzo at "Jun 18, 97 11:59:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo stands accused of saying:
> > Simon Shapiro stands accused of saying:
> > > 
> > > I am in need for a precise, high resolution timer within the kernel.
> > > I need it to time certain instructions, functions, and I/O events.
> > 
> > microtime()
> 
> It is worth mentioning that the Pentium also has an accessible cycle
> counter, which can be read using the rdtsc asm instruction (or the
> equivalent rdtsc() function in the kernel).

microtime() uses it.  Ask Bruce if you need to know more 8)

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



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