mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CComponentsPicture: remove benchmark lines
Was only for debugging.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user