ctime Functions & Types
This library contains types and functions to access the date and time.
- a constant named CLOCKS_PER_SEC
- a type named time_t which stores an integer type.
- a type named clock_t which stores a integer type
- Some functions
- clock_t clock() - returns the processor time used by the program
since the beginning of execution. clock()/CLOCKS_PER_SEC is the
CPU time used in seconds.
- time_t time(0) - returns an internal representation of the
current time.
- a sample program using the ctime library