Home

timeval(3type)

timeval(3type)timeval(3type)

timeval - time in seconds and microseconds

Standard C library (libc)

#include <sys/time.h>
struct timeval {    time_t       tv_sec;   /* Seconds */    suseconds_t  tv_usec;  /* Microseconds */};

Describes times in seconds and microseconds.

POSIX.1-2001 and later.

The following headers also provide this type: <sys/resource.h>, <sys/select.h>, and <utmpx.h>.

gettimeofday(2), select(2), utimes(2), adjtime(3), futimes(3), timeradd(3), suseconds_t(3type), time_t(3type), timespec(3type)

2022-10-30Linux man-pages 6.03