From owner-freebsd-hackers Wed Jun 18 04:45:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA12230 for hackers-outgoing; Wed, 18 Jun 1997 04:45:11 -0700 (PDT) Received: from inetfw.sonycsl.co.jp (inetfw.sonycsl.co.jp [203.137.129.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA12223 for ; Wed, 18 Jun 1997 04:45:06 -0700 (PDT) Received: from hotaka.csl.sony.co.jp (hotaka.csl.sony.co.jp [43.27.98.57]) by inetfw.sonycsl.co.jp (8.8.5/3.5W) with ESMTP id UAA17862 for ; Wed, 18 Jun 1997 20:44:59 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.4/3.3W3) with ESMTP id UAA16819 for ; Wed, 18 Jun 1997 20:44:44 +0900 (JST) Message-Id: <199706181144.UAA16819@hotaka.csl.sony.co.jp> To: FreeBSD-Hackers@FreeBSD.ORG Subject: Re: High Resolution Timers, How? In-reply-to: Your message of "Wed, 18 Jun 1997 18:28:12 +0930." <199706180858.SAA21423@genesis.atrad.adelaide.edu.au> Date: Wed, 18 Jun 1997 20:44:43 +0900 From: Kenjiro Cho Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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.