|
- NAME
- times - get process times
- SYNOPSIS
- #include <sys/times.h>
clock_t times(struct tms *buf);
- DESCRIPTION
- The times() function stores the current process times in the struct tms that buf points to if tms is not NULL. The struct tms is as defined in <sys/times.h>. The tms_utime field contains the CPU time spent executing instructions of the calling process. The tms_stime field contains the CPU time spent in the system while executing tasks on behalf of the calling process.
- RETURN VALUE
- The function times returns the number of clock ticks that have elapsed since an arbitrary point in the past.
- IMPLEMENTATION ON apeNEXT
- On apeNEXT tm_utime is set to the number of clock cycles where the processor was not in I2C mode (the so-called clock counter). The other fields are set to zero. The function returns tsm_utime.
Definition at line 58 of file times.h.
References clock_t, NULL, tms::tms_cstime, tms::tms_cutime, tms::tms_stime, and tms::tms_utime. |