(2) System Calls Manual (2) times - (libc -lc) #include clock_t times(struct tms *buf); times() struct tms buf. struct tms : struct tms { clock_t tms_utime; /* */ clock_t tms_stime; /* */ clock_t tms_cutime; /* */ clock_t tms_cstime; /* */ }; tms_utime (CPU) . tms_stime CPU . tms_cutime tms_utime tms_cutime . tms_cstime tms_stime tms_cstime . () wait(2) waitpid(2) . . (clock ticks). times() . clock_t. (clock_t) -1 errno . EFAULT tms . buf NULL times() . POSIX UNIX NULL buf. POSIX.1-2024. POSIX.1-2001 SVr4 4.3BSD. POSIX.1-1996 CLK_TCK ( ) . . 2.6.9 SIGCHLD SIG_IGN tms_cstime tms_cutime POSIX.1-2001 wait(2) . 2.6.9 . " " times() . 2.4 . 2.6 (2^32/HZ) - 300 . ( UNIX) clock_t . clock_gettime(2) . SVr1-3 long time_t (Epoch). V7 long time_t . : sysconf(_SC_CLK_TCK); clock(3) clock_t CLOCKS_PER_SEC times(). ( i386) 2.6 (41 ) times() -1 . clock_t. time(1), getrusage(2), wait(2), clock(3), sysconf(3), time(7) 3 . . : . 6.18 8 2026 (2)