*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> clock (3)              
Title
Content
Arch
Section
 

clock(3)

Contents


NAME    [Toc]    [Back]

       clock - Report CPU time used

SYNOPSIS    [Toc]    [Back]

       #include <time.h>

       clock_t clock(
               void );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       clock():  XPG4, XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

DESCRIPTION    [Toc]    [Back]

       The  clock() function reports the amount of processor time
       used by the calling process and  each  of  its  terminated
       child  processes  for  which a wait function has been executed.
 When a child process does not wait  for  its  children,
  its  child-process  times  are  not included in its
       times.

RETURN VALUES    [Toc]    [Back]

       The clock() function returns the amount of processor  time
       (in  microseconds)  used  since the first call to clock().
       To  convert  the   time   to   seconds,   divide   it   by
       CLOCKS_PER_SEC  (which  is  defined  to  be  1,000,000  in
       <time.h>). If the processor time used is not available  or
       its  value  cannot  be  represented,  the clock() function
       returns (clock_t)-1.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: ctime(3), getrusage(2), times(3), wait(2)

       Standards: standards(5)



                                                         clock(3)
[ Back ]
 Similar pages
Name OS Title
timex IRIX time a command; report process data and system activity
timex HP-UX time a command; report process data and system activity
vxfs_ifree_timelag HP-UX VxFS inode free time lag (specifies the minimum time to be spent on a freelist)
create_link HP-UX Creates a soft link and optionally specifies an expiration time and an extension time
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
settimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL64TO32 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL32TO64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
ftime Tru64 Gets and sets date and time and converts time between timeval and timeval64
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service