From owner-man-jp-reviewer@jp.freebsd.org  Thu Oct 22 11:18:38 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id LAA08380;
	Thu, 22 Oct 1998 11:18:38 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from od3.sharp.co.jp (firewall-user@od3.sharp.co.jp [202.32.86.132])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id LAA08369
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:18:31 +0900 (JST)
	(envelope-from kuma@slab.tnr.sharp.co.jp)
Received: by od3.sharp.co.jp; id LAA21612; Thu, 22 Oct 1998 11:18:29 +0900 (JST)
Received: from unknown(133.159.14.115) by od3.sharp.co.jp via smap (3.2)
	id xma021581; Thu, 22 Oct 98 11:18:25 +0900
Received: from td1.tnr.sharp.co.jp (root@td1.tnr.sharp.co.jp [133.159.52.20]) by od.sharp.co.jp (8.8.5/3.5W-98081113) with ESMTP id LAA26358 for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:18:25 +0900 (JST)
Received: from mailfwd.slab.tnr.sharp.co.jp ([10.32.30.11]) by td1.tnr.sharp.co.jp (8.8.5/3.5W-97080613) with ESMTP id LAA00917 for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:18:25 +0900 (JST)
Received: from server01.slab.tnr.sharp.co.jp ([10.32.50.4])
	by mailfwd.slab.tnr.sharp.co.jp (8.8.4+2.7Wbeta4/3.6Wbeta7) with ESMTP id LAA03244
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:17:13 +0900 (JST)
Received: from gaye.slab.tnr.sharp.co.jp (gaye.slab.tnr.sharp.co.jp [10.32.49.117])
	by server01.slab.tnr.sharp.co.jp (8.8.5/3.6Wbeta7 98051815) with ESMTP id LAA06303
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:18:24 +0900 (JST)
Received: from gaye.slab.tnr.sharp.co.jp (kuma@localhost) by gaye.slab.tnr.sharp.co.jp (8.8.7/3.5Wpl5) with ESMTP id LAA12807 for <man-jp-reviewer@jp.freebsd.org>; Thu, 22 Oct 1998 11:18:24 +0900 (JST)
Message-Id: <199810220218.LAA12807@gaye.slab.tnr.sharp.co.jp>
To: man-jp-reviewer@jp.freebsd.org
In-reply-to: Your message of "Thu, 22 Oct 1998 00:13:02 JST."
             <199810211513.AAA00553@hiloshi.seikyou.ne.jp> 
Date: Thu, 22 Oct 1998 11:18:24 +0900
From: Norihiro Kumagai <kuma@slab.tnr.sharp.co.jp>
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: man-jp-reviewer 607
Subject: [man-jp-reviewer 607] Re: (check) clocks.7 
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org

$B7'C+$G$9!#(B

In Message <199810211513.AAA00553@hiloshi.seikyou.ne.jp>,
  =?ISO-2022-JP?B?GyRCNmJFRDlAO0obKEI=?= <vanitas@ma3.seikyou.ne.jp> writes:
>  clocks.7 $B$N%A%'%C%/$G$9!#(B

$B$&!<$`!#3hH/$J%A%'%C%/(B/$BK]Lu3hF062$lF~$j$^$9!#(B

> $B86J8!"(B47, 50, 54, 71$B9TL\$K$"$k!"(Bhappens to be $B$,(B
> $B$I$&$$$&0UL#$K$J$k$N$+$o$+$j$^$;$s!#(B (;_;)$B!6(B

$B;zLL$G$O!"!V$?$^$?$^(B 128 $B$K$J$C$?(B($BJ86g$"$C$+(B)$B!W$H$$$&$+!"!V(B128 $B$K$J$C(B
$B$?M}M3$r?<$/A':w$9$k$J$!!W$H$$$&$+!"$=$&$$$&%K%e%"%s%9$J$s$G$O$J$$$+$H(B
$B$$$&0u>]$,$"$j$^$9!#(B

$B$J$s$FOC$O!"6b$sED$5$s$O@h9o8f>5CN$G!"!V$J$s$G!X$?$^$?$^(B 128 $B!Y$J$s$@!)!W(B
$B$H$$$&$H$3$m$r5$$K$J$5$l$F$$$k$H;W$&$N$G$9$,!D!#(B

$B$G!";d$bCN$j$?$$!V$J$s$G!X$?$^$?$^(B 128$B!Y$J$s$@!)!W(B

$B!t(B  $B$3$&$$$&;~!"86J8=q$$$??M$KD>@\J9$1$k$H3Z$J$s$G$9$1$I$M$'(B:-)
$B!t(B  Joerg Wunsch $B$5$s$H$+!"(BBruce Evans $B$5$s$H$+$C$F$I$3$N?M$J$s$G$7$g!#(B

$B$A$J$_$K!"(B/usr/include/time.h $B$N(B CLOCKS_PER_SEC $B%^%/%mDj5A$N85%M%?$O!"(B
/usr/include/machine/ansi.h ($B$N$*$7$^$$(B)$B$K$"$C$F!"$=$3$K$O!"(B

/*
 * Frequencies of the clock ticks reported by clock() and times().  They
 * are the same as stathz for bogus historical reasons.  They should be
 * 1e6 because clock() and times() are implemented using getrusage() and
 * there is no good reason why they should be less accurate.  There is
 * the bad reason that (broken) programs might not like clock_t or
 * CLOCKS_PER_SEC being ``double'' (``unsigned long'' is not large enough
 * to hold the required 24 hours worth of ticks if the frequency is
 * 1000000ul, and ``unsigned long long'' would be nonstandard).
 */

$B$H$"$j$^$9!#(Bfor bogus historical reasons $B$H$+!"(BThey should be 1e6 ... 
$B$r8+$k$H!V$*$l$b<aA3$H$7$J$$$s$@$!$C!W$H$$$&Iw>p$,$"$j$^$9$+$i!"!V$?$^(B
$B$?$^(B 128 $B$J$s$@$!!W$H$$$&46$8$G$h$m$7$$$N$G$O$J$$$+$H!#(B

> $B=iLu$G$OLu=P$7$F$$$J$$$h$&$G$9$,!"$5$[$I=EMW$G$O(B
> $B$J$$$N$G$7$g$&$+!)(B

$B!V$?$^$?$^(B 128$B!W$J$iL5;k$7$F$b$$$$$s$8$c$J$$$G$7$g$&$+!)!V?<$/A':w$9$k(B
$B$J$!!W$G$9$7!#(B

($B!V=tHL$N;v>p$K$h$j(B 128$B!W$G$b$$$$$+$b$M(B) $B7'C+(B $BE5Bg(B
