Query: times
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
times(2) System Calls Manual times(2)NAMEtimes - get process and child process timesSYNOPSISDESCRIPTIONfills the structure pointed to by buffer with time-accounting information. The structure defined in is as follows: struct tms { clock_t tms_utime; /* user time */ clock_t tms_stime; /* system time */" clock_t tms_cutime; /* user time, children */ clock_t tms_cstime; /* system time, children */ }; This information comes from the calling process and each of its terminated child processes for which it has executed a or The times are in units of 1/seconds, where is processor dependent. The value of can be queried using the function (see sysconf(2)). is the CPU time used while executing instructions in the user space of the calling process. is the CPU time used by the system on behalf of the calling process. is the sum of the and of the child processes. is the sum of the and of the child processes.RETURN VALUEUpon successful completion, returns the elapsed real time, in units of 1/of a second, since an arbitrary point in the past (such as system start-up time). This point does not change from one invocation of to another. If fails, (clock_t) -1 is returned and is set to indicate the error. Remarks has a granularity of one tick. Processes which run less than one tick may not register any value.ERRORSfails if buffer points to an illegal address. The reliable detection of this error is implementation dependent.WARNINGSNot all CPU time expended by system processes on behalf of a user process is counted in the system CPU time for that process.SEE ALSOtime(1), exec(2), fork(2), gettimeofday(2), sysconf(2), time(2), wait(2).STANDARDS CONFORMANCEtimes(2)
Related Man Pages |
---|
times(2) - redhat |
times(2) - centos |
times(3posix) - linux |
times(3p) - suse |
times(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Max. No. Processes/user |
UNIX System Call for creating process |
CPU Usage |
CPU and Memory Statistics Collection Across Many Servers |
Get all child processes of a process |