29 #ifndef ROHC_TIME_INTERNAL_H
30 #define ROHC_TIME_INTERNAL_H
35 # include <sys/time.h>
41 __attribute__((warn_unused_result,
const));
56 interval = end.
sec - begin.
sec;
57 interval *= 1000000000UL;
59 interval -= begin.
nsec;
static uint64_t rohc_time_interval(const struct rohc_ts begin, const struct rohc_ts end)
Compute the interval of time between 2 timestamps.
Definition: rohc_time_internal.h:51
A timestamp for the ROHC library.
Definition: rohc_time.h:51
uint64_t sec
Definition: rohc_time.h:53
uint64_t nsec
Definition: rohc_time.h:54
ROHC public definitions related to time.