Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 1997 20:44:43 +0900
From:      Kenjiro Cho <kjc@csl.sony.co.jp>
To:        FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: High Resolution Timers, How? 
Message-ID:  <199706181144.UAA16819@hotaka.csl.sony.co.jp>
In-Reply-To: Your message of "Wed, 18 Jun 1997 18:28:12 %2B0930." <199706180858.SAA21423@genesis.atrad.adelaide.edu.au> 

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

Solaris implements gethrtime(get high resolution time) that returns
a 64-bit value in nanoseconds since some arbitrary time.

Its features are:
	- simpler and faster
	- higher resolution
	- no sec/usec conversion required
	- no clock adjustment (no time warp)

hrtime seems to be an attractive alternative since microtime() is used
mostly to measure time delta, and easily implemented by extracting
part of microtime().

How about implementing gethrtime in FreeBSD?

--kj

---
Kenjiro Cho
Sony Computer Science Laboratory Inc.



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