CLOCK(S) XENIX System V CLOCK(S)
Name
clock - Reports CPU time used.
Syntax
long clock ( )
Description
clock returns the amount of CPU time (in microseconds) used
since the first call to clock. The reported time equals the
sum of user and system times of the calling process and any
terminated child processes for which wait or system(S) were
executed.
The resolution of the clock is machine dependent. Refer to
the manual page machine(HW) for the clock resolution on your
system.
See Also
machine(HW), system(S), times(S), wait(S)
Notes
The microsecond value returned by clock is compatible with
systems that have CPU clocks with much higher resolution.
Because of this, the value returned will wrap around after
accumulating only 2147 seconds of CPU time (about 36
minutes).
Page 1 (printed 8/7/87)