15 #include "benchmark/benchmark.h"
30 : output_stream_(&
std::cout), error_stream_(&
std::cerr) {}
39 Out <<
"Run on (" <<
context.num_cpus <<
" X " <<
context.mhz_per_cpu
40 <<
" MHz CPU " << ((
context.num_cpus > 1) ?
"s" :
"") <<
")\n";
44 if (
context.cpu_scaling_enabled) {
45 Out <<
"***WARNING*** CPU scaling is enabled, the benchmark "
46 "real time measurements may be noisy and will incur extra "
51 Out <<
"***WARNING*** Library was built as DEBUG. Timings may be "
58 if (iterations != 0) new_time /=
static_cast<double>(iterations);
64 if (iterations != 0) new_time /=
static_cast<double>(iterations);