]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: provide an rdtsc() function for time comparisons
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2015 15:13:35 +0000 (17:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2015 17:14:03 +0000 (19:14 +0200)
commite6e49cfa93acc7b222f5395a049c8de53a6eb5df
tree4f27a7db6c9a8e93b44736ab7ae2327c0ca911da
parentf95bc8e3e0800dcf22194a43edce837d0baae772
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.
include/common/standard.h