]> git.ipfire.org Git - thirdparty/zstd.git/commit
[bench] Use higher resolution timer on POSIX 839/head
authorNick Terrell <terrelln@fb.com>
Tue, 12 Sep 2017 20:09:08 +0000 (13:09 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 12 Sep 2017 23:46:44 +0000 (16:46 -0700)
commit6ab4d5e9041aba962a810ffee191f95897c6208e
tree91e8e5c1eec6edee3b6af28e0549dafd15c65573
parent274f7ecd8484ee6323cfb8dce9df938f968599f4
[bench] Use higher resolution timer on POSIX

The timer used was only accurate up to 0.01 seconds. This timer is accurate up to 1 ns.
It is a monotonic timer that measures the real time difference, not on CPU time.
programs/util.h