bgpctl(8): ometric: measure elapsed time with monotonic clock
authorcheloha <cheloha@openbsd.org>
Thu, 8 Dec 2022 17:24:39 +0000 (17:24 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 8 Dec 2022 17:24:39 +0000 (17:24 +0000)
commitca6da2b30680dd96c63486ad2afb679e0b1b902a
tree92153926d6988cc090004cdd6c9443c230289bb2
parent83fc6d9ddc217e5961db4493021f807d4630c900
bgpctl(8): ometric: measure elapsed time with monotonic clock

Prefer CLOCK_MONOTONIC to gettimeofday(2) when measuring elapsed time,
as the UTC clock can jump around.

ok claudio@
usr.sbin/bgpctl/output_ometric.c