| 287 | } |
| 288 | |
| 289 | static __inline void |
| 290 | timespec2bintime(const struct timespec *_ts, struct bintime *_bt) |
| 291 | { |
| 292 | |
| 293 | _bt->sec = _ts->tv_sec; |
| 294 | /* 18446744073 = int(2^64 / 1000000000) */ |
| 295 | _bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL; |
| 296 | } |
| 297 | |
| 298 | static __inline void |
| 299 | bintime2timeval(const struct bintime *_bt, struct timeval *_tv) |
no outgoing calls
no test coverage detected