]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: time: add now_mono_time() and now_cpu_time()
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Oct 2018 16:59:53 +0000 (18:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2018 14:39:48 +0000 (16:39 +0200)
commit5ceeb150028b6d21df12c783768e6c32fbda03d0
tree86a6242a1f872d4f7d35108501d7877373d0d8ac
parent58e90cbb9ef402e7107f58a4e38fd4a9e4709bd0
MINOR: time: add now_mono_time() and now_cpu_time()

These two functions retrieve respectively the monotonic clock time and
the per-thread CPU time when available on the platform, or return zero.
These syscalls may require to link with -lrt on certain libc, which is
enabled in the Makefile with USE_RT=1 (default on Linux systems).
include/common/time.h