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

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