From f07a27825d62e45421bb95351d94e13fd0ee97e1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 28 Aug 2017 12:16:45 +0200 Subject: [PATCH] CComponentsPicture: remove benchmark lines Was only for debugging. --- src/gui/components/cc_item_picture.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index c776dfcb6..63eb85bfc 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -299,10 +299,6 @@ int CComponentsPicture::getHeight() void CComponentsPicture::paintPicture() { - struct timeval t1, t2; - if (debug) - gettimeofday(&t1, NULL); - is_image_painted = false; //initialize image position int x_pic = x; @@ -337,14 +333,6 @@ void CComponentsPicture::paintPicture() frameBuffer->RestoreScreen(x_pic, y_pic, dxc, dyc, image_cache); } } - - //benchmark - if (debug){ - gettimeofday(&t2, NULL); - uint64_t duration = ((t2.tv_sec * 1000000ULL + t2.tv_usec) - (t1.tv_sec * 1000000ULL + t1.tv_usec)) / 1000ULL; - if (duration) - fprintf(stderr, "\033[33m[CComponentsPicture] %s: %" PRIu64 " ms to paint image \033[0m\n", __func__, duration); - } } void CComponentsPicture::paint(bool do_save_bg)