liveBook · Manning

Clock

As explained in Modern C

clock is a C standard library function that obtains processor time consumed by the program.

clock is a C standard library function that obtains the processor time consumed by the program. section 8.5

The interface

clock_t clock(void);

How Modern C covers it

How deep it goes
Defines the function's purpose and prototype but does not explain timing units or conversion.
Examples
Shows the declaration clock_t clock(void).
What you can do after
Evaluate processor time consumed by a program using clock.
How it connects
Connects to processor time and C standard library functions.

Also explained in

Compare how 5 books explain clock →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Modern C. The section links point to the parts of the book it draws on.