summaryrefslogtreecommitdiff
path: root/gui/timer.h
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/timer.h
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/timer.h')
-rw-r--r--gui/timer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gui/timer.h b/gui/timer.h
new file mode 100644
index 0000000..cdda945
--- /dev/null
+++ b/gui/timer.h
@@ -0,0 +1,23 @@
+/*
+ * gui/timer.h - Performance timer
+ *
+ * Written 2016 by Werner Almesberger
+ * Copyright 2016 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef GUI_TIMER_H
+#define GUI_TIMER_H
+
+#include <cairo/cairo.h>
+
+
+void timer_start(void);
+void timer_show(cairo_t *cr);
+void timer_toggle(void);
+
+#endif /* !GUI_TIMER_H */