CLOCK
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
clock
- determine processor time used
SYNOPSIS
Fd #include <sys/types.h>
Ft clock_t
Fn clock void
DESCRIPTION
The
Fn clock
function
determines the amount of processor time used since the invocation of the
calling process, measured in
CLK_TCK s.
RETURN VALUES
The
Fn clock
function returns the amount of time used unless an error occurs, in which
case the return value is -1.
SEE ALSO
getrusage(2)
STANDARDS
The
Fn clock
function conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 06:42:17 GMT, May 19, 2025