diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-11-13 14:55:35 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-11-13 22:12:41 +0200 |
commit | c146ed65aee4c55fc57d8798ac0e1643ed26be8a (patch) | |
tree | f831baae70a8e9b150db29ce619c1b6118d74949 /libkmstest | |
parent | b74ac168d91919f70f788d937a0ebe0b3ef58c61 (diff) |
libkmstest: disable draw perf prints
Diffstat (limited to 'libkmstest')
-rw-r--r-- | libkmstest/testpat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libkmstest/testpat.cpp b/libkmstest/testpat.cpp index b054cf6..007860f 100644 --- a/libkmstest/testpat.cpp +++ b/libkmstest/testpat.cpp @@ -1,4 +1,6 @@ +//#define DRAW_PERF_PRINT + #include <chrono> #include <cstring> #include <cassert> @@ -266,15 +268,19 @@ static void draw_test_pattern_impl(DumbFramebuffer& fb) void draw_test_pattern(DumbFramebuffer& fb) { +#ifdef DRAW_PERF_PRINT using namespace std::chrono; auto t1 = high_resolution_clock::now(); +#endif draw_test_pattern_impl(fb); +#ifdef DRAW_PERF_PRINT auto t2 = high_resolution_clock::now(); auto time_span = duration_cast<microseconds>(t2 - t1); printf("draw took %u us\n", (unsigned)time_span.count()); +#endif } } |