summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 19:50:44 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 19:50:44 -0300
commit51e5f3fd52b7b338a153857b1d7dd01d632097bb (patch)
treecc0b7e2d2066d6b17fb97076a0850c43b3f903b5 /gui/render.c
parent891cec01ba4dace8feba7636c0f9aa293324cf09 (diff)
downloadeeshow-51e5f3fd52b7b338a153857b1d7dd01d632097bb.tar.gz
eeshow-51e5f3fd52b7b338a153857b1d7dd01d632097bb.tar.bz2
eeshow-51e5f3fd52b7b338a153857b1d7dd01d632097bb.zip
GUI performance timer, toggle with "T"
Shows milliseconds between last event and completion of screen update.
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/render.c b/gui/render.c
index 2411fd6..214b7b2 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -29,6 +29,7 @@
#include "gfx/diff.h"
#include "gui/aoi.h"
#include "gui/over.h"
+#include "gui/timer.h"
#include "gui/common.h"
@@ -241,6 +242,8 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
if (ctx->mode == showing_index)
index_draw_event(ctx, cr);
+ timer_show(cr);
+
return FALSE;
}