Go to the previous, next section.

times

SYNOPSIS

clock_t times(struct tms *buf);

PARAMETERS

buf: [out] where to store the times.

DESCRIPTION

Retreives the current task times. The tms structure has the layout:

struct tms {
        time_t tms_utime;  /* user time */
        time_t tms_stime;  /* system time */
        time_t tms_cutime; /* user time of children */
        time_t tms_cstime; /* system time of children */
};

RETURN VALUE

The number of system ticks elapsed since the system has booted.

Go to the previous, next section.