struct timeval represents an elapsed time. #include <sys/time.h> struct timeval {
time_t tv_sec; // Number of whole seconds of elapsed time
long int tv_usec; // Number of microseconds of rest of elapsed time minus tv_sec. Always less than one million
};