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

Function tc_delta

freebsd/kern/kern_tc.c:197–205  ·  view source on GitHub ↗

* Return the difference between the timehands' counter value now and what * was when we copied it to the timehands' offset_count. */

Source from the content-addressed store, hash-verified

195 * was when we copied it to the timehands' offset_count.
196 */
197static __inline u_int
198tc_delta(struct timehands *th)
199{
200 struct timecounter *tc;
201
202 tc = th->th_counter;
203 return ((tc->tc_get_timecount(tc) - th->th_offset_count) &
204 tc->tc_counter_mask);
205}
206
207/*
208 * Functions for reading the time. We have to loop until we are sure that

Callers 4

bintime_offFunction · 0.85
ffclock_read_counterFunction · 0.85
sysclock_getsnapshotFunction · 0.85
kern_tc.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected