411 REFERENCE · Wikibooks
C++ Programming/Code/Standard C Library/Functions/clock
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
clock
#include <ctime>
clock_t clock( void );
The clock() function returns the processor time since the program started, or -1 if that information is unavailable. To convert the return value to seconds, divide it by CLOCKS_PER_SEC.
If your compiler and library is POSIX compliant, then CLOCKS_PER_SEC is always defined as 1000000.
Related topics asctime - ctime - time