Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 1996 15:07:47 -0500
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Laurent Joncheray <lpj@ans.net>
Cc:        current@freebsd.org
Subject:   microtime() resolution?
Message-ID:  <9612182007.AA08255@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199612181933.OAA13797@obelix.aa.ans.net>
References:  <199612181933.OAA13797@obelix.aa.ans.net>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 18 Dec 1996 14:33:21 -0500 (EST), Laurent Joncheray <lpj@ans.net> said:

> function, called from the IP driver? I mean, it is supposed to return
> the time in us, but is the timer updated every us, or more often, or less?

The timer is updated `hz' times a second (i.e., every 10 msec).
However, microtime() uses a hardware register to interpolate between
clock ticks with potentially-sub-microsecond resolution.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, ANA, or NSA|                     - Susan Aglukark and Chad Irschick



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