times man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

times(3UCB)	   SunOS/BSD Compatibility Library Functions	   times(3UCB)

NAME
       times - get process times

SYNOPSIS
       /usr/ucb/cc [ flag ... ] file ...
       #include <sys/param.h>
       #include <sys/types.h>
       #include <sys/times.h>

       int times(tmsp)
       register struct tms *tmsp;

DESCRIPTION
       The  times()  function returns time-accounting information for the cur‐
       rent process and for the terminated  child  processes  of  the  current
       process.	  All  times  are reported in clock ticks. The number of clock
       ticks per second is defined by  the  variable  CLK_TCK,	found  in  the
       header <limits.h>.

       A structure with the following members is returned by times():

	 time_t	   tms_utime;	 /* user time */
	 time_t	   tms_stime;	 /* system time */
	 time_t	   tms_cutime;	 /* user time, children */
	 time_t	   tms_cstime;	 /* system time, children */

       The  children's	times  are the sum of the children's process times and
       their children's times.

RETURN VALUES
       Upon successful completion, times() returns 0.  Otherwise,  it  returns
       −1.

SEE ALSO
       cc(1B), time(1), time(2), getrusage(3C), wait(3C)

NOTES
       Use of these interfaces should be restricted to only applications writ‐
       ten on BSD platforms.  Use of these interfaces with any of  the	system
       libraries or in multi-threaded applications is unsupported.

       The times() function has been superseded by getrusage(3C).

SunOS 5.10			  30 Oct 2007			   times(3UCB)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net