MINOR: clock: add now_mono_time_fast() function
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 25 Nov 2022 07:56:46 +0000 (08:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Apr 2023 09:03:31 +0000 (11:03 +0200)
commit07cbd8e0741d141e19f7b11cbd873c142bb84cae
treea161f94afe0d4fce3c587a2730795e5e6f7db39d
parentbe336620b7cee3ebf06186352748e1ebac5830ae
MINOR: clock: add now_mono_time_fast() function

Same as now_mono_time(), but for fast queries (less accurate)
Relies on coarse clock source (also known as fast clock source on
some systems).

Fallback to now_mono_time() if coarse source is not supported on the system.
include/haproxy/clock.h
include/haproxy/compat.h
src/clock.c