8a72894489
Sync with the original version. Unify some japanese words. Submitted by: kano@na.rim.or.jp
139 lines
3.7 KiB
Groff
139 lines
3.7 KiB
Groff
.\" Copyright (c) 1990, 1991, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)times.3 8.1 (Berkeley) 6/4/93
|
||
.\" %FreeBSD: src/lib/libc/gen/times.3,v 1.4.2.4 2001/12/14 18:33:51 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd June 4, 1993
|
||
.Dt TIMES 3
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm times
|
||
.Sh ¥é¥¤¥Ö¥é¥ê
|
||
.Lb libc
|
||
.Nd »þ´Ö¤Î½èÍý
|
||
.Sh ½ñ¼°
|
||
.In sys/times.h
|
||
.Ft clock_t
|
||
.Fn times "struct tms *tp"
|
||
.Sh ²òÀâ
|
||
.Bf -symbolic
|
||
¤³¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï¡¢´Ø¿ô
|
||
.Xr getrusage 2
|
||
¤ª¤è¤Ó
|
||
.Xr gettimeofday 3
|
||
¤ËÃÖ¤´¹¤¨¤é¤ì¤Æ¤¤¤Þ¤¹¡£
|
||
.Ef
|
||
.Pp
|
||
.Fn times
|
||
´Ø¿ô¤Ï¡¢1970 ǯ 1 ·î 1 Æü 0 »þ 0 ʬ 0 ÉäÇÄ´À°¤µ¤ì¤¿À¤³¦»þ¤«¤é¬¤Ã¤¿
|
||
.Dv CLK_TCK
|
||
¤Î»þ´ÖÃͤòÉäÇÊÖ¤·¤Þ¤¹¡£
|
||
.Pp
|
||
¤³¤Î´Ø¿ô¤Ï¡¢
|
||
.Fa tp
|
||
¤Ë¤è¤ê»Ø¼¨¤µ¤ì¤¿¹½Â¤¤Ë»þ´Ö·×¬¾ðÊó¤ò½ñ¹þ¤ß¤Þ¤¹¡£
|
||
.Pp
|
||
.Vt tms
|
||
¹½Â¤¤Ï¡¢¼¡¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Þ¤¹¡§
|
||
.Bd -literal -offset indent
|
||
struct tms {
|
||
clock_t tms_utime;
|
||
clock_t tms_stime;
|
||
clock_t tms_cutime;
|
||
clock_t tms_cstime;
|
||
};
|
||
.Ed
|
||
.Pp
|
||
¤³¤Î¹½Â¤¤ÎÍ×ÁǤϡ¢¼¡¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Þ¤¹¡§
|
||
.Bl -tag -width ".Va tms_cutime"
|
||
.It Va tms_utime
|
||
¥æ¡¼¥¶¥¤¥ó¥¹¥È¥é¥¯¥·¥ç¥ó¤Î¼Â¹Ô¤ËÂФ·¤ÆÀÁµá¤µ¤ì¤ë
|
||
.Tn CPU
|
||
¥¿¥¤¥à¡£
|
||
.It Va tms_stime
|
||
¤½¤Î½èÍý¤Î¤¿¤á¤Î¥·¥¹¥Æ¥à¤Ë¤è¤ë¼Â¹Ô¤ËÂФ·¤ÆÀÁµá¤µ¤ì¤ë
|
||
.Tn CPU
|
||
¥¿¥¤¥à¡£
|
||
.It Va tms_cutime
|
||
»Ò¥×¥í¥»¥¹¤Î
|
||
.Va tms_utime s
|
||
¤ª¤è¤Ó
|
||
.Va tms_cutime s
|
||
¤ÎÏ¡£
|
||
.It Va tms_cstime
|
||
»Ò¥×¥í¥»¥¹¤Î
|
||
.Va tms_stime Ns s
|
||
¤ª¤è¤Ó
|
||
.Va tms_cstime Ns s
|
||
¤ÎÏ¡£
|
||
.El
|
||
.Pp
|
||
¤¹¤Ù¤Æ¤Î»þ´Ö¤Ï¡¢
|
||
.Dv CLK_TCK
|
||
ÉäÇɽ¤µ¤ì¤Þ¤¹¡£
|
||
.Pp
|
||
½ªÎ»¤·¤¿»Ò¥×¥í¥»¥¹¤Î»þ´Ö¤Ï¡¢
|
||
.Xr wait 2
|
||
´Ø¿ô¤Î
|
||
1 ¤Ä¤¬½ªÎ»¤·¤¿»Ò¤Î¥×¥í¥»¥¹ ID ¤ò¤½¤Î¿Æ¤ËÊÖ¤·¤¿¤È¤¤Ë¡¢¤½¤Î¿Æ¤Î
|
||
.Va tms_cutime
|
||
¤ª¤è¤Ó
|
||
.Va tms_cstime
|
||
¤ÎÍ×ÁǤ˥¤¥ó¥¯¥ë¡¼¥É¤µ¤ì¤Þ¤¹¡£¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ï¡¢
|
||
.Fn times
|
||
´Ø¿ô¤ÏÃÍ
|
||
.Pq Po Vt clock_t Pc Ns \-1
|
||
¤òÊÖ¤·¡¢¥¨¥é¡¼¤ò¼¨¤¹
|
||
.Va errno
|
||
¤òÀßÄꤷ¤Þ¤¹¡£
|
||
.Sh ¥¨¥é¡¼
|
||
.Fn times
|
||
´Ø¿ô¤¬¼ºÇÔ¤¹¤ë¤È¡¢¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó
|
||
.Xr getrusage 2
|
||
¤ª¤è¤Ó
|
||
.Xr gettimeofday 2
|
||
¤Ë»ØÄꤵ¤ì¤¿¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¤ËÂФ·¤Æ¡¢¥°¥í¡¼¥Ð¥ëÊÑ¿ô
|
||
.Va errno
|
||
¤òÀßÄꤹ¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr time 1 ,
|
||
.Xr getrusage 2 ,
|
||
.Xr gettimeofday 2 ,
|
||
.Xr wait 2 ,
|
||
.Xr clocks 7
|
||
.Pp
|
||
.Sh µ¬³Ê
|
||
.Fn times
|
||
´Ø¿ô¤Ï¡¢
|
||
.St -p1003.1-88
|
||
¤Ë½àµò¤·¤Æ¤¤¤Þ¤¹¡£
|