TIMESPEC_TO_TIMEVAL
(3)convert between time structures
#define _GNU_SOURCE #include <sys/time.h> void TIMEVAL_TO_TIMESPEC(const struct timeval *tv, struct timespec *ts); void TIMESPEC_TO_TIMEVAL(struct timeval *tv, const struct timespec *ts);
convert between time structures