bench: switch to std::chrono for time measurements
commitc515d266ec04d7f0b2b1b3815a793c27ddcd4e1c
authorCory Fields <cory-nospam-@coryfields.com>
Wed, 25 Oct 2017 20:38:24 +0000 (25 16:38 -0400)
committerCory Fields <cory-nospam-@coryfields.com>
Tue, 7 Nov 2017 22:15:58 +0000 (7 17:15 -0500)
tree57055da9437118e4220868fee4ce3853534cb7c3
parent57ee73990f1ce29916adfd99f93eae1ccea1a43b
bench: switch to std::chrono for time measurements

std::chrono removes portability issues.

Rather than storing doubles, store the untouched time_points. Then
convert to nanoseconds for display. This allows for maximum precision, while
keeping results comparable between differing hardware/operating systems.

Also, display full nanosecond counts rather than sub-second floats.
src/bench/bench.cpp
src/bench/bench.h
src/bench/rollingbloom.cpp