mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Require a steady clock for bench with at least micro precision
This commit is contained in:
parent
9e9e31aa10
commit
620bae34cf
2 changed files with 5 additions and 4 deletions
|
|
@ -23,6 +23,9 @@ void
|
|||
benchmark::BenchRunner::RunAll(benchmark::duration elapsedTimeForOne)
|
||||
{
|
||||
perf_init();
|
||||
if (std::ratio_less_equal<benchmark::clock::period, std::micro>::value) {
|
||||
std::cerr << "WARNING: Clock precision is worse than microsecond - benchmarks may be less accurate!\n";
|
||||
}
|
||||
std::cout << "#Benchmark" << "," << "count" << "," << "min(ns)" << "," << "max(ns)" << "," << "average(ns)" << ","
|
||||
<< "min_cycles" << "," << "max_cycles" << "," << "average_cycles" << "\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue