diff options
author | Ismael <ijimenezm@hotmail.es> | 2016-06-01 23:08:01 +0200 |
---|---|---|
committer | Ismael <ijimenezm@hotmail.es> | 2016-06-01 23:08:01 +0200 |
commit | 867f9145a0a45f8b993cec8b48309c19391acaa0 (patch) | |
tree | 4e45e9437b61f45b2bec0fb47a9e1b9849e03e89 /src/console_reporter.cc | |
parent | 74a278e206f9387dec72ec000436a18bfcb3070e (diff) | |
download | google-benchmark-867f9145a0a45f8b993cec8b48309c19391acaa0.tar.gz |
added lambdas to complexity report
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r-- | src/console_reporter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_reporter.cc b/src/console_reporter.cc index 9b20ac8..2783097 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -90,8 +90,8 @@ void ConsoleReporter::PrintRunData(const Run& result) { const double cpu_time = result.GetAdjustedCPUTime(); if(result.report_big_o) { - std::string big_o = result.report_big_o ? GetBigOString(result.complexity) : ""; - ColorPrintf(Out, COLOR_YELLOW, "%10.4f %s %10.4f %s ", + std::string big_o = GetBigOString(result.complexity); + ColorPrintf(Out, COLOR_YELLOW, "%10.2f %s %10.2f %s ", real_time, big_o.c_str(), cpu_time, big_o.c_str()); } else if(result.report_rms) { ColorPrintf(Out, COLOR_YELLOW, "%10.0f %% %10.0f %% ", |