MINOR: time: replace calls to tv_ms_elapsed() with a linear subtract
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 07:21:20 +0000 (09:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Apr 2023 14:08:08 +0000 (16:08 +0200)
commit76d343d3d371fb89053598db79e1f7a3e8c8a750
tree03dcad09abc211c2b6da6d9d4e36a37bc12b19fb
parent591fa59da752af85be4ff45722f4bbd3178709b9
MINOR: time: replace calls to tv_ms_elapsed() with a linear subtract

Instead of operating on {sec, usec} now we convert both operands to
ns then subtract them and convert to ms. This is a first step towards
dropping timeval from these timestamps.

Interestingly, tv_ms_elapsed() and tv_ms_remain() are no longer used at
all and could be removed.
include/haproxy/mux_quic.h
src/backend.c
src/check.c
src/cli.c
src/flt_spoe.c
src/http_ana.c
src/log.c
src/mux_h1.c
src/mux_h2.c
src/session.c
src/stream.c