table of contents
other sections
| TIMES(2) | Manual do Programador Linux | TIMES(2) |
NOME¶
times - obtém o tempo do processoSINOPSE¶
#include <sys/times.h>clock_t times(struct tms *buf);
DESCRIÇÃO¶
times armazena o tempo do processo atual em buf.struct tms é como definida em /usr/include/sys/times.h:
struct tms {
clock_t tms_utime; /* user time */
clock_t tms_stime; /* system time */
clock_t tms_cutime; /* user time of children */
clock_t tms_cstime; /* system time of children */
};
times retorna o número de tiques de relógio que tem passado desde que o sistema foi ativado.
DE ACORDO COM¶
SVr4, SVID, POSIX, X/OPEN, BSD 4.3VEJA TAMBÉM¶
time(1), getrusage(2), wait(2)| 24/07/1993 | Linux 0.99.11 |