sourCEntral - mobile manpages

pdf

TIMES

NOME

times − obtém o tempo do processo

SINOPSE

#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.3

VEJA TAMBÉM

time(1), getrusage(2), wait(2)

pdf