IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 2 > times man page

times man page

Section 2 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





System Calls                                             times(2)



NAME
     times - get process and child process times

SYNOPSIS
     #include <sys/times.h>
     #include <limits.h>

     clock_t times(struct tms *buffer);

DESCRIPTION
     The times() function fills the tms structure pointed  to  by
     buffer  with time-accounting information. The tms structure,
     defined in <sys/times.h>, contains the following members:

     clock_t    tms_utime;
     clock_t    tms_stime;
     clock_t    tms_cutime;
     clock_t    tms_cstime;


     All times are reported in clock ticks.  The  specific  value
     for  a  clock tick is defined by the variable CLK_TCK, found
     in the header <limits.h>.

     The times of a terminated child process are included in  the
     tms_cutime   and  tms_cstime  members  of  the  parent  when
     wait(3C) or waitpid(3C) returns the process ID of this  ter-
     minated  child.   If  a child process has not waited for its
     children, their times will not be included in its times.

     The tms_utime member is the CPU time  used  while  executing
     instructions in the user space of the calling process.

     The tms_stime member is the CPU time used by the  system  on
     behalf of the calling process.

     The tms_cutime member is the sum of the  tms_utime  and  the
     tms_cutime of the child processes.

     The tms_cstime member is the sum of the  tms_stime  and  the
     tms_cstime of the child processes.

RETURN VALUES
     Upon successful completion, times() returns the elapsed real
     time,  in  clock ticks, since an arbitrary point in the past
     (for example, system start-up time).  This  point  does  not
     change  from one invocation of times() within the process to
     another. The return value may overflow the possible range of
     type  clock_t. If times() fails, (clock_t)-1 is returned and
     errno is set to indicate the error.





SunOS 5.10          Last change: 14 May 1997                    1






System Calls                                             times(2)



ERRORS
     The times() function will fail if:

     EFAULT          The buffer argument  points  to  an  illegal
                     address.



ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Interface Stability         | Standard                    |
    |_____________________________|_____________________________|
    | MT-Level                    | Async-Signal-Safe           |
    |_____________________________|_____________________________|


SEE ALSO
     time(1), timex(1),  exec(2),  fork(2),  time(2),  waitid(2),
     wait(3C), waitpid(3C), attributes(5), standards(5)































SunOS 5.10          Last change: 14 May 1997                    2





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:27:11 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5323 hits)
(openSUSE 10.2)

svn man page (5181 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4865 hits)
(Solaris 10 11_06)

CPAN man page (4602 hits)
(Suse Linux 10.1)

ssh man page (4337 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2843 hits)
(Solaris 10 11_06)

netcat man page (2691 hits)
(Suse Linux 10.1)

pprosetup man page (2474 hits)
(Solaris 10 11_06)

startproc man page (2457 hits)
(Suse Linux 10.1)

signal man page (2395 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Location :: Server Room Temperature Monitor :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum