commit | 5ceeb150028b6d21df12c783768e6c32fbda03d0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 17 18:59:53 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 18 16:39:48 2018 +0200 |
tree | 86a6242a1f872d4f7d35108501d7877373d0d8ac | |
parent | 58e90cbb9ef402e7107f58a4e38fd4a9e4709bd0 [diff] |
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).