SYNOPSIS
#include <sys/types.h>
#include <sys/times.h>
clock_t times(struct tms *buffer);
DESCRIPTION
The
- The tms_utime structure member is the CPU time charged for execution of user instructions in the calling process.
- The tms_stime structure member is the CPU time charged for execution by the system on behalf of the calling process.
- The tms_cutime structure member is the sum of the tms_utime and tms_cutime times of the child processes of the calling process.
- The tms_cstime structure member is the sum of the tms_stime and tms_cstime times of the child processes of the calling process.
The times of a terminated child process are included in the
tms_cutime and tms_cstime elements of the parent
when
PARAMETERS
RETURN VALUES
If successful,
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
execl() ,execle() ,execlp() ,execlpe() ,execv() ,execve() ,execvp() ,execvpe() ,fork() ,sysconf() ,time() ,wait() ,waitpid()
PTC MKS Toolkit 10.5 Documentation Build 40.