hpux man page for clock

Query: clock

OS: hpux

Section: 3c

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

clock(3C)																 clock(3C)

NAME
clock() - report CPU time used
SYNOPSIS
DESCRIPTION
returns the amount of CPU time (in microseconds) used since the first call to The time reported is the sum of the user and system times of the calling process and its terminated child processes for which it has executed , or (see wait(2) , system(3S), and popen(3S)). To deter- mine the time in seconds, the value returned by should be divided by the value of the macro The resolution of the clock varies, depending on the hardware and on software configuration. If the processor time used is not available or its value cannot be represented, the function returns the value
WARNINGS
The value returned by is defined in microseconds for compatibility with systems that have CPU clocks with much higher resolution. Because of this, the value returned wraps around after accumulating only 4295 seconds of CPU time (about 72 minutes).
DEPENDENCIES
The default clock resolution is 10 milliseconds.
SEE ALSO
times(2), wait(2), system(3S), thread_safety(5).
STANDARDS CONFORMANCE
clock(3C)
Related Man Pages
clock(3) - linux
clock(3c) - sunos
clock(3) - debian
clock_getres(2) - hpux
clock(3c) - hpux
Similar Topics in the Unix Linux Community
*nix Desktops
Quad or Duel Processors
Infinite for loop is taking too much CPU usage %
how to get the same time in two systems,
AIX CPU waits