CComponentsPicture: remove benchmark lines

Was only for debugging.
This commit is contained in:
2017-08-28 12:16:45 +02:00
parent 16dac64ed2
commit f07a27825d

View File

@@ -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)