commit | 591fa59da752af85be4ff45722f4bbd3178709b9 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 27 08:51:54 2023 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Apr 28 16:08:08 2023 +0200 |
tree | db3f75b5b4519370ed31b45a7bf97f9fa5503370 | |
parent | 7222db7b849ae80e2bfb573e2ef462d9b29406a2 [diff] |
MINOR: time: add conversions to/from nanosecond timestamps In order to ease the transition away from the timeval used in internal timestamps, let's first create a few functions and macro to return a counter from a timeval and conversely, as well as ease the conversions to/from ns/us/ms/sec to save the user from having to count zeroes and to think about appending ULL in conversions.