|
NAMEtimeradd , timersub ,
timerclear , timerisset ,
timercmp , timespecadd ,
timespecsub , timespecclear ,
timespecisset , timespeccmp
—
operations on timevals and timespecs
SYNOPSIS#include <sys/time.h>
void
void
void
int
int
void
void
void
int
int
DESCRIPTIONThese macros are provided for manipulating timeval and timespec structures for use with the clock_gettime(2), clock_settime(2), gettimeofday(2) and settimeofday(2) calls. The timeval structure is defined in<sys/time.h> as:
struct timeval { long tv_sec; /* seconds since Jan. 1, 1970 */ long tv_usec; /* and microseconds */ }; <time.h> as:
struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ };
SEE ALSOclock_gettime(2), gettimeofday(2)HISTORYThetimeradd () family of macros were imported from
NetBSD 1.1, and appeared in FreeBSD
2.2.6. The timespecadd () family of macros were
imported from NetBSD 1.3 into FreeBSD
3.0, though they were not exposed to userland until
FreeBSD 12.0.
Visit the GSP FreeBSD Man Page Interface. |