From c146ed65aee4c55fc57d8798ac0e1643ed26be8a Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 13 Nov 2015 14:55:35 +0200 Subject: libkmstest: disable draw perf prints --- libkmstest/testpat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libkmstest') 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 #include #include @@ -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(t2 - t1); printf("draw took %u us\n", (unsigned)time_span.count()); +#endif } } -- cgit v1.2.3