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

Function timevaladd

freebsd/kern/kern_time.c:990–997  ·  view source on GitHub ↗

* Add and subtract routines for timevals. * N.B.: subtract routine doesn't deal with * results which are before the beginning, * it just gets very confused in this case. * Caveat emptor. */

Source from the content-addressed store, hash-verified

988 * Caveat emptor.
989 */
990void
991timevaladd(struct timeval *t1, const struct timeval *t2)
992{
993
994 t1->tv_sec += t2->tv_sec;
995 t1->tv_usec += t2->tv_usec;
996 timevalfix(t1);
997}
998
999void
1000timevalsub(struct timeval *t1, const struct timeval *t2)

Callers 8

acct_processFunction · 0.70
fill_kinfo_proc_onlyFunction · 0.70
kern_clock_gettimeFunction · 0.70
kern_setitimerFunction · 0.70
realitexpireFunction · 0.70
procdesc_statFunction · 0.70
sctp_set_prsctp_policyFunction · 0.50

Calls 1

timevalfixFunction · 0.70

Tested by

no test coverage detected