]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: clock: add now_cpu_time_fast() function
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Apr 2023 15:21:40 +0000 (17:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Apr 2023 09:03:31 +0000 (11:03 +0200)
commitdf188f145bba955640a7cc9f34efb819fedddb1a
tree92abaa4c01bbb70b96ca4b3d876246cd1a9ce97a
parent07cbd8e0741d141e19f7b11cbd873c142bb84cae
MINOR: clock: add now_cpu_time_fast() function

Same as now_cpu_time(), but for fast queries (less accurate)
Relies on now_cpu_time() and now_mono_time_fast() is used
as a cache expiration hint to prevent now_cpu_time() from being
called too often since it is known to be quite expensive.

Depends on commit "MINOR: clock: add now_mono_time_fast() function"
include/haproxy/clock.h
src/clock.c