diff options
author | Ismael <ijimenezm@hotmail.es> | 2016-05-23 22:09:55 +0200 |
---|---|---|
committer | Ismael <ijimenezm@hotmail.es> | 2016-05-23 22:09:55 +0200 |
commit | 266b3bd635a37b28d6e92125c615d3e17f5022ea (patch) | |
tree | f5be9a3350b87a527d0ca8971d7d9e16d2b6c7b9 /src/console_reporter.cc | |
parent | 43ef17441cc8767f5523031878a2f43ab1d7790b (diff) | |
download | google-benchmark-266b3bd635a37b28d6e92125c615d3e17f5022ea.tar.gz |
changed color and remove iterations
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r-- | src/console_reporter.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/console_reporter.cc b/src/console_reporter.cc index 09b91c2..242a94f 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -112,7 +112,7 @@ void ConsoleReporter::PrintRunData(const Run& result) { const char* timeLabel; std::tie(timeLabel, multiplier) = GetTimeUnitAndMultiplier(result.time_unit); - ColorPrintf(COLOR_GREEN, "%-*s ", + ColorPrintf((result.report_big_o ||result.report_rms) ? COLOR_BLUE : COLOR_GREEN, "%-*s ", name_field_width_, result.benchmark_name.c_str()); if(result.report_big_o) { @@ -146,7 +146,8 @@ void ConsoleReporter::PrintRunData(const Run& result) { timeLabel); } - ColorPrintf(COLOR_CYAN, "%10lld", result.iterations); + if(!result.report_big_o && !result.report_rms) + ColorPrintf(COLOR_CYAN, "%10lld", result.iterations); if (!rate.empty()) { ColorPrintf(COLOR_DEFAULT, " %*s", 13, rate.c_str()); |