Date and Time Functions
clock_t, clock(), time_t, time()
Most UNIX time functions have evolved from various sources, and are sometimes inconsistent, referring to time as one of:
- the number of seconds since Jan 1, 1970 (or Jan 1, 1900)
- the number of clock ticks since Jan 1, 1970 (or Jan 1, 1900)
- the broken down structure “struct tm”
(see /usr/include/time.h)
- the broken down structure “struct timeval”
(see /usr/include/sys/time.h)
Some are intended for time/date, whereas others are intended for measuring elapsed time