MCPcopy Create free account
hub / github.com/F-Stack/f-stack / timespec2bintime

Function timespec2bintime

freebsd/sys/time.h:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static __inline void
290timespec2bintime(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
298static __inline void
299bintime2timeval(const struct bintime *_bt, struct timeval *_tv)

Callers 4

ip_savecontrolFunction · 0.85
ip6_savecontrol_v4Function · 0.85
ffclock_reset_clockFunction · 0.85
tc_setclockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected