Fix the printf problem -- use std::cout :)

extra-data
Joshua MacDonald 2013-02-08 23:14:47 -08:00
parent 54f346f981
commit 92ec61e4b8
1 changed files with 4 additions and 5 deletions

View File

@ -133,7 +133,7 @@ void BenchmarkRun::Reset() {
void BenchmarkRun::Run() {
assert(current_benchmark == NULL);
current_benchmark = this;
int64_t iters = FLAGS_benchmark_min_iters;
int iters = FLAGS_benchmark_min_iters;
for (;;) {
Reset();
Start();
@ -150,10 +150,9 @@ void BenchmarkRun::Run() {
}
iters = min(iters, FLAGS_benchmark_max_iters);
}
fprintf(stdout, "%s\t%qu\t%qu\n",
benchmark_name,
accum_micros * 1000ULL / iters,
iters);
std::cout << benchmark_name << "\t"
<< accum_micros * 1000 / iters << "\t"
<< iters;
current_benchmark = NULL;
}