Subject: RE: High res timer on i386
To: 'David Laight' <david@l8s.co.uk>
From: Michael D. Spence <spence@panix.com>
List: netbsd-help
Date: 08/06/2003 15:18:06
> -----Original Message-----
> From: netbsd-help-owner@NetBSD.org
> [mailto:netbsd-help-owner@NetBSD.org]On Behalf Of David Laight
> Sent: Wednesday, August 06, 2003 11:17 AM
> Cc: netbsd-help@netbsd.org
> Subject: Re: High res timer on i386
> 
> 
> On Wed, Aug 06, 2003 at 10:48:55AM -0400, Michael D. Spence wrote:
> > Windows has QueryPerformanceFrequency and QueryPerformanceCounter, 
> > which evidently do something with a high-resolution clock.  
> > 
> > Does NetBSD offer access to this device?
> 
> gettimeofday() gives microsecond resolution - which is about as good
> as you'll get since it costs the kernel of the order of a usec to
> get an accurate time.

Evidently the 386 has a counter that can be started, then read from
time to time to get fairly high resolution elapsed times.  This appears
to be what the Windows stuff reads and returns, and I was hoping that
it'd be available on NetBSD.