TIMES
Section: 리눅스 프로그래머 메뉴얼 (2)
Updated: 1993년 7월 24일
Index
Return to Main Contents
이름
times - 프로세스 시간을 알아낸다.
사용법
#include <sys/times.h>
clock_t times(struct tms *buf);
설명
times는
buf에
현재 프로세스의 시간을 저장한다.
struct tms는
/usr/include/sys/times.h에
다음과 같이 정의 되어 있다:
struct tms {
clock_t tms_utime; /* 사용자 시간 */
clock_t tms_stime; /* 시스템 시간 */
clock_t tms_cutime; /* 자식들의 사용자 시간 */
clock_t tms_cstime; /* 자식들의 시스템 시간 */
};
times는
시스템이 부팅된 후 경과한 clock ticks의 수를 리턴한다.
호환
SVr4, SVID, POSIX, X/OPEN, BSD 4.3
관련 항목
time(1),
getrusage(2),
wait(2)
역자
정강훈 <skyeyes@soback.kornet.net>, 2000년 5월 2일
Index
- 이름
-
- 사용법
-
- 설명
-
- 호환
-
- 관련 항목
-
- 역자
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:00 GMT, March 25, 2004