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

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

CLOCK(3)

Contents


NAME    [Toc]    [Back]

     clock -- determine processor time used

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <time.h>

     clock_t
     clock(void);

DESCRIPTION    [Toc]    [Back]

     The clock() function determines the amount of processor time used since
     the invocation of the calling process, measured in CLOCKS_PER_SECs of a
     second.

RETURN VALUES    [Toc]    [Back]

     The clock() function returns the amount of time used unless an error
     occurs, in which case the return value is -1.

SEE ALSO    [Toc]    [Back]

      
      
     getrusage(2), clocks(7)

STANDARDS    [Toc]    [Back]

     The clock() function conforms to ISO/IEC 9899:1990 (``ISO C89'').	However,
 Version 2 of the Single UNIX Specification (``SUSv2'') requires
     CLOCKS_PER_SEC to be defined as one million.  FreeBSD does not conform to
     this requirement; changing the value would introduce binary incompatibility
 and one million is still inadequate on modern processors.


FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
clock Linux Determine processor time
__pset_rtctl HP-UX real-time processor set control
intr_strobe_ics_pct HP-UX limit for the percent of time a processor is allowed to spend in interrupt context
ldconfig Linux determine run-time link bindings
pset_assign_cpu Tru64 Assigns a processor to a processor set
assign_cpu_to_pset Tru64 Assigns a processor to a processor set
create_link HP-UX Creates a soft link and optionally specifies an expiration time and an extension time
vxfs_ifree_timelag HP-UX VxFS inode free time lag (specifies the minimum time to be spent on a freelist)
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
TIMEVAL32TO64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service