factor out nsecuptime and getnsecuptime.
authordlg <dlg@openbsd.org>
Tue, 15 Jun 2021 05:24:46 +0000 (05:24 +0000)
committerdlg <dlg@openbsd.org>
Tue, 15 Jun 2021 05:24:46 +0000 (05:24 +0000)
commit4ea724981d715fa6d48d9259aab2fa5feb58d23d
treeab787db93958dd8e3dce1571ddf6b0f8d25a44dd
parent1c3ff09ad37ab9532af634dd4fbc4845d7a4edf4
factor out nsecuptime and getnsecuptime.

these functions were implemented in a bunch of places with comments
saying it should be moved to kern_tc.c when more pop up, and i was
about to add another one. i think it's time to move them to kern_tc.c.

ok cheloa@ jmatthew@
sys/kern/kern_tc.c
sys/kern/subr_pool.c
sys/kern/vfs_sync.c
sys/net/bpf.c
sys/sys/time.h