diff options
author | Dominic Hamon <dominic@google.com> | 2015-03-31 14:40:46 -0400 |
---|---|---|
committer | Dominic Hamon <dominic@google.com> | 2015-03-31 14:43:38 -0400 |
commit | 25e46848f9d584261d5960ce9394a565f58aa070 (patch) | |
tree | d54cb8053cef77541ec3215bd62a44d871fe366b /src/console_reporter.cc | |
parent | 006d23ccca1375a973b7fae0cc351cedb41b812a (diff) | |
download | google-benchmark-25e46848f9d584261d5960ce9394a565f58aa070.tar.gz |
Clarify build type warning
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r-- | src/console_reporter.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/console_reporter.cc b/src/console_reporter.cc index 7a99dfb..7faed20 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -41,16 +41,13 @@ bool ConsoleReporter::ReportContext(const Context& context) { } #ifndef NDEBUG - std::cerr << "Build Type: DEBUG\n"; + std::cerr << "***WARNING*** Library was built as DEBUG. Timings may be " + "affected.\n"; #endif - int output_width = - fprintf(stdout, - "%-*s %10s %10s %10s\n", - static_cast<int>(name_field_width_), - "Benchmark", - "Time(ns)", "CPU(ns)", - "Iterations"); + int output_width = fprintf(stdout, "%-*s %10s %10s %10s\n", + static_cast<int>(name_field_width_), "Benchmark", + "Time(ns)", "CPU(ns)", "Iterations"); std::cout << std::string(output_width - 1, '-') << "\n"; return true; |