NAME
clock - Reports CPU time used
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <time.h>
clock_t clock (void);
DESCRIPTION
The clock() function reports the amount of processor time
used by the calling process.
NOTES
The clock() function is made obsolete by the getrusage()
function; however, it is included for compatibility with
older BSD programs.
AES Support Level: Full use
RETURN VALUES
The clock() function returns the amount of processor time
(in microseconds) used since the first call to clock(). To
determine the time in seconds, divide the value returned by
clock() by the value CLOCKS_PER_SEC. If the processor time
used is not available or its value cannot be represented,
the clock() function returns (clock_t)-1.
RELATED INFORMATION
Functions: getrusage(2), times(3), wait(2)
Acknowledgement and Disclaimer