1999-12-09 17:26:08 +01:00
. \" 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
2002-05-18 09:12:57 +02:00
. \" %FreeBSD: src/lib/libc/gen/times.3,v 1.4.2.4 2001/12/14 18:33:51 ru Exp %
1999-12-09 17:26:08 +01:00
. \"
2001-05-14 03:10:24 +02:00
. \" $FreeBSD$
1999-12-09 17:26:08 +01:00
.Dd June 4 , 1993
.Dt TIMES 3
2002-05-18 09:12:57 +02:00
.Os
1999-12-09 17:26:08 +01:00
.Sh ̾<EFBFBD> <EFBFBD>
.Nm times
2002-05-18 09:12:57 +02:00
.Sh <EFBFBD> 饤<EFBFBD> ֥<EFBFBD> <EFBFBD> <EFBFBD>
.Lb libc
1999-12-09 17:26:08 +01:00
.Nd <EFBFBD> <EFBFBD> <EFBFBD> ֤ν <EFBFBD> <EFBFBD> <EFBFBD>
.Sh <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.In sys/times.h
.Ft clock_t
1999-12-09 17:26:08 +01:00
.Fn times "struct tms *tp"
.Sh <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Bf -symbolic
2002-05-18 09:12:57 +02:00
<EFBFBD> <EFBFBD> <EFBFBD> Υ <EFBFBD> <EFBFBD> ե<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ϡ<EFBFBD> <EFBFBD> ؿ<EFBFBD>
.Xr getrusage 2
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Xr gettimeofday 3
<EFBFBD> <EFBFBD> <EFBFBD> ֤<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
1999-12-09 17:26:08 +01:00
.Ef
.Pp
.Fn times
<EFBFBD> ؿ<EFBFBD> <EFBFBD> ϡ<EFBFBD> 1970 ǯ 1 <20> <> 1 <20> <> 0 <20> <> 0 ʬ 0 <20> ä<EFBFBD> Ĵ<EFBFBD> <C4B4> <EFBFBD> <EFBFBD> <EFBFBD> 줿<EFBFBD> <ECA4BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ¬<EFBFBD> ä<EFBFBD>
.Dv CLK_TCK
<EFBFBD> λ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͤ<EFBFBD> <EFBFBD> ä<EFBFBD> <EFBFBD> ֤<EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
.Pp
<EFBFBD> <EFBFBD> <EFBFBD> δؿ<EFBFBD> <EFBFBD> ϡ<EFBFBD>
.Fa tp
<EFBFBD> ˤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ؼ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 줿<EFBFBD> <EFBFBD> ¤<EFBFBD> ˻<EFBFBD> <EFBFBD> ַ<EFBFBD> ¬<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ߤޤ<EFBFBD> <EFBFBD> <EFBFBD>
.Pp
2002-05-18 09:12:57 +02:00
.Vt tms
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> ¤<EFBFBD> ϡ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ 褦<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
.Bd -literal -offset indent
2002-05-18 09:12:57 +02:00
struct tms {
1999-12-09 17:26:08 +01:00
clock_t tms_utime;
clock_t tms_stime;
clock_t tms_cutime;
clock_t tms_cstime;
2002-05-18 09:12:57 +02:00
};
1999-12-09 17:26:08 +01:00
.Ed
.Pp
<EFBFBD> <EFBFBD> <EFBFBD> ι <EFBFBD> ¤<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥϡ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ 褦<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Bl -tag -width ".Va tms_cutime"
.It Va tms_utime
1999-12-09 17:26:08 +01:00
<EFBFBD> 桼<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȥ饯<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> μ¹Ԥ<EFBFBD> <EFBFBD> Ф<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᤵ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Tn CPU
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ࡣ
2002-05-18 09:12:57 +02:00
.It Va tms_stime
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> ν <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Τ <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Υ <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƥ<EFBFBD> <EFBFBD> ˤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ¹Ԥ<EFBFBD> <EFBFBD> Ф<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᤵ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Tn CPU
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ࡣ
2002-05-18 09:12:57 +02:00
.It Va tms_cutime
1999-12-09 17:26:08 +01:00
<EFBFBD> ҥץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Va tms_utime s
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Va tms_cutime s
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> ¡<EFBFBD>
2002-05-18 09:12:57 +02:00
.It Va tms_cstime
1999-12-09 17:26:08 +01:00
<EFBFBD> ҥץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Va tms_stime Ns s
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Va tms_cstime Ns s
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> ¡<EFBFBD>
.El
.Pp
<EFBFBD> <EFBFBD> <EFBFBD> ٤Ƥλ<EFBFBD> <EFBFBD> ֤ϡ<EFBFBD>
.Dv CLK_TCK
<EFBFBD> ä<EFBFBD> ɽ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
.Pp
<EFBFBD> <EFBFBD> λ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ҥץ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> λ<EFBFBD> <EFBFBD> ֤ϡ<EFBFBD>
.Xr wait 2
<EFBFBD> ؿ<EFBFBD> <EFBFBD> <EFBFBD>
1 <20> Ĥ<EFBFBD> <C4A4> <EFBFBD> λ<EFBFBD> <CEBB> <EFBFBD> <EFBFBD> <EFBFBD> ҤΥ ץ<CEA5> <D7A5> <EFBFBD> <EFBFBD> <EFBFBD> ID <20> ο Ƥ<CEBF> <C6A4> ֤<EFBFBD> <D6A4> <EFBFBD> <EFBFBD> Ȥ<EFBFBD> <C8A4> ˡ<EFBFBD> <CBA1> <EFBFBD> <EFBFBD> ο Ƥ<CEBF>
2002-05-18 09:12:57 +02:00
.Va tms_cutime
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Va tms_cstime
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ǥ˥<EFBFBD> <EFBFBD> 롼<EFBFBD> ɤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 顼<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ϡ<EFBFBD>
.Fn times
<EFBFBD> ؿ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2002-05-18 09:12:57 +02:00
.Pq Po Vt clock_t Pc Ns \- 1
1999-12-09 17:26:08 +01:00
<EFBFBD> <EFBFBD> <EFBFBD> ֤<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 顼<EFBFBD> <EFBFBD>
.Va errno
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤷ<EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
.Sh <EFBFBD> <EFBFBD> <EFBFBD> 顼
.Fn times
<EFBFBD> ؿ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ԥ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ȡ<EFBFBD> <EFBFBD> 饤<EFBFBD> ֥<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 롼<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Xr getrusage 2
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Xr gettimeofday 2
<EFBFBD> ˻<EFBFBD> <EFBFBD> ꤵ<EFBFBD> 줿<EFBFBD> <EFBFBD> <EFBFBD> ٤ƤΥ <EFBFBD> <EFBFBD> 顼<EFBFBD> <EFBFBD> <EFBFBD> Ф<EFBFBD> <EFBFBD> ơ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Х <EFBFBD> <EFBFBD> ѿ<EFBFBD>
.Va errno
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ꤹ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 礬<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>
2004-10-11 10:23:01 +02:00
.Sh <EFBFBD> <EFBFBD> Ϣ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
1999-12-09 17:26:08 +01:00
.Xr time 1 ,
.Xr getrusage 2 ,
.Xr gettimeofday 2 ,
.Xr wait 2 ,
.Xr clocks 7
.Pp
.Sh <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
.Fn times
<EFBFBD> ؿ<EFBFBD> <EFBFBD> ϡ<EFBFBD>
.St -p1003.1-88
<EFBFBD> ˽<EFBFBD> <EFBFBD> Ƥ<EFBFBD> <EFBFBD> ޤ<EFBFBD> <EFBFBD> <EFBFBD>