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

Function bintime_fromclock

freebsd/sys/timeffc.h:260–268  ·  view source on GitHub ↗

* Public system clock wrapper API which allows consumers to select which clock * to obtain time from, independent of the current default system clock. These * wrappers should be used instead of directly calling the underlying fbclock_ * or ffclock_ functions. */

Source from the content-addressed store, hash-verified

258 * or ffclock_ functions.
259 */
260static inline void
261bintime_fromclock(struct bintime *bt, int whichclock)
262{
263
264 if (whichclock == SYSCLOCK_FFWD)
265 ffclock_bintime(bt);
266 else
267 fbclock_bintime(bt);
268}
269
270static inline void
271nanotime_fromclock(struct timespec *tsp, int whichclock)

Callers 1

bintimeFunction · 0.85

Calls 2

ffclock_bintimeFunction · 0.85
fbclock_bintimeFunction · 0.85

Tested by

no test coverage detected