summaryrefslogtreecommitdiff
path: root/gui/sheet.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/sheet.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/sheet.c')
-rw-r--r--gui/sheet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 3e65f28..f500078 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -26,6 +26,7 @@
#include "gui/input.h"
#include "gui/help.h"
#include "gui/icons.h"
+#include "gui/timer.h"
#include "gui/common.h"
@@ -577,6 +578,11 @@ static void sheet_key(void *user, int x, int y, int keyval)
help();
break;
+ case GDK_KEY_t:
+ timer_toggle();
+ redraw(ctx);
+ break;
+
case GDK_KEY_q:
gtk_main_quit();
}