Query: clock
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
clock(3) Library Functions Manual clock(3)NAMEclock - Reports CPU time usedLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <time.h> clock_t clock (void);STANDARDSInterfaces 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.DESCRIPTIONThe 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 VALUESThe 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.RELATED INFORMATIONFunctions: ctime(3), getrusage(2), times(3), wait(2) Standards: standards(5) delim off clock(3)
Related Man Pages |
---|
times(2) - opensolaris |
times(2) - redhat |
clock(3) - linux |
clock(3c) - sunos |
clock(3) - centos |
Similar Topics in the Unix Linux Community |
---|
how to get processor Id in UNIX |
*nix Desktops |
Bugs with clock() |
Cyber Challenge: 10,000 Security Warriors Wanted |
CPU and Cores information |