clock_t times(struct tms *buf);
struct tms is as defined in /.us/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 returns the number of clock ticks that have elapsed since the system has been up.