C++ Programming/Code/Standard C Library/Functions/clock
< C++ Programming < Code < Standard C Library < Functionsclock
Syntax |
#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.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.