Main Page | Alphabetical List | Class List | File List | Class Members | File Members

times.h File Reference

#include <nlibc.h>
#include <time.h>
#include <confregs.h>

Include dependency graph for times.h:

Include dependency graph

Go to the source code of this file.

Classes

struct  tms

Functions

clock_t times (struct tms *buf)


Function Documentation

clock_t times struct tms buf  )  [inline]
 

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.


Generated on Mon Feb 20 15:54:54 2006 for nlibc by doxygen 1.3.5