Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 1997 06:22:47 -0600
From:      "Justin T. Gibbs" <gibbs@plutotech.com>
To:        Simon Shapiro <Shimon@i-Connect.Net>
Cc:        FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: High Resolution Timers, How? 
Message-ID:  <199706181124.FAA19300@pluto.plutotech.com>
In-Reply-To: Your message of "Wed, 18 Jun 1997 01:33:55 PDT." <XFMail.970618013355.Shimon@i-Connect.Net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Hi Y'all,
>
>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.

If you only need high resolution "time of day" functionality, use
microtime().

>The best i could find is a global variable called time which claims
>to have a usec resolution but;  Either I am exceptionally lucky and
>always hit it on a x000000 resolution, or it is not telling the
>truth.  i need a timer that will increment in usec resolution or
>as close to it as I can get.

Were you looking at lbolt?

--
Justin T. Gibbs
===========================================
  FreeBSD: Turning PCs into workstations
===========================================



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