 |
PcapPlusPlus
20.08
|
4 #ifndef TIMEVAL_TO_TIMESPEC
5 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \
6 (ts)->tv_sec = (tv)->tv_sec; \
7 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
11 #ifndef TIMESPEC_TO_TIMEVAL
12 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \
13 (tv)->tv_sec = (ts)->tv_sec; \
14 (tv)->tv_usec = (ts)->tv_nsec / 1000; \