aboutsummaryrefslogtreecommitdiff
path: root/src/console_reporter.cc
diff options
context:
space:
mode:
authorDominic Hamon <dominic@google.com>2015-03-31 14:40:46 -0400
committerDominic Hamon <dominic@google.com>2015-03-31 14:43:38 -0400
commit25e46848f9d584261d5960ce9394a565f58aa070 (patch)
treed54cb8053cef77541ec3215bd62a44d871fe366b /src/console_reporter.cc
parent006d23ccca1375a973b7fae0cc351cedb41b812a (diff)
downloadgoogle-benchmark-25e46848f9d584261d5960ce9394a565f58aa070.tar.gz
Clarify build type warning
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r--src/console_reporter.cc13
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;