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

Function cputick2timespec

freebsd/kern/kern_time.c:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static inline void
243cputick2timespec(uint64_t runtime, struct timespec *ats)
244{
245 runtime = cputick2usec(runtime);
246 ats->tv_sec = runtime / 1000000;
247 ats->tv_nsec = runtime % 1000000 * 1000;
248}
249
250void
251kern_thread_cputime(struct thread *targettd, struct timespec *ats)

Callers 2

kern_thread_cputimeFunction · 0.85
kern_process_cputimeFunction · 0.85

Calls 1

cputick2usecFunction · 0.85

Tested by

no test coverage detected