commit | e6e49cfa93acc7b222f5395a049c8de53a6eb5df | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Apr 29 17:13:35 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 29 19:14:03 2015 +0200 |
tree | 4f27a7db6c9a8e93b44736ab7ae2327c0ca911da | |
parent | f95bc8e3e0800dcf22194a43edce837d0baae772 [diff] |
MINOR: tools: provide an rdtsc() function for time comparisons This one returns a timestamp, either the one from the CPU or from gettimeofday() in 64-bit format. The purpose is to be able to compare timestamps on various entities to make it easier to detect updates. It can also be used for benchmarking in certain situations during development.