timeval
Timeval is a data structure used in Unix-like operating systems to represent a time value or interval with second and microsecond precision. It is commonly defined as a struct containing two fields: tv_sec and tv_usec. The tv_sec field stores the number of seconds since the Unix epoch (midnight UTC on 1 January 1970), while tv_usec holds the microsecond portion within the current second. The exact underlying types can vary by platform (for example, time_t for tv_sec and suseconds_t or long for tv_usec).
Timeval is defined in the system header <sys/time.h> and is used by several interfaces. The gettimeofday function
Relation to other time representations: Timespec is a related structure that stores time as tv_sec and tv_nsec
Portability and notes: Timeval has a long-standing POSIX heritage and is available on most Unix-like systems.