commit | 4deeb1055f8f7e3feec195233f1ad3b3bf90accb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jan 29 10:47:52 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jan 29 12:10:33 2021 +0100 |
tree | 5b60316e8b8edb91d5d73781df90bbaf48d4f909 | |
parent | 87ef32397101c7bc4783982af952da12c1750e88 [diff] |
MINOR: tools: add print_time_short() to print a condensed duration value When reporting some values in debugging output we often need to have some condensed, stable-length values. This function prints a duration from nanosecond to years with at least 4 digits of accuracy using the most suitable unit, always on 7 chars.