From 6b4e74972be817f9bf81129262cc3eb233b2cc0c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 28 Aug 2017 12:16:45 +0200 Subject: [PATCH] CProgressBarCache: remove benchmark lines Was only for debugging. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d42389b1671aab7f2b4f638b0ee9c58fed22d6e0 Author: Thilo Graf Date: 2017-08-28 (Mon, 28 Aug 2017) --- src/gui/components/cc_item_progressbar.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gui/components/cc_item_progressbar.cpp b/src/gui/components/cc_item_progressbar.cpp index d3ea4831f..543d71a8e 100644 --- a/src/gui/components/cc_item_progressbar.cpp +++ b/src/gui/components/cc_item_progressbar.cpp @@ -432,10 +432,6 @@ void CProgressBarCache::pbcApplyGradient(fb_pixel_t *b) void CProgressBar::paintProgress(bool do_save_bg) { - struct timeval t1, t2; - if (debug) - gettimeofday(&t1, NULL); - if (*pb_design == PB_OFF) { paintInit(false); return; @@ -476,14 +472,6 @@ void CProgressBar::paintProgress(bool do_save_bg) if (is_painted) pb_last_width = pb_active_width; - - //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[CProgressBar] %s: %" PRIu64 " ms to paint progress \033[0m\n",__func__, duration); - } }