aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-31 19:37:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-31 19:37:43 +0000
commitc5bdf7c27eeea1026a0e5e90ceb3a5dbe0a2d923 (patch)
treec82ea9902f591b173e1bb66fba4d64156f319762
parentrender: presentation: space between value and "µs" (diff)
term: ptmx timing: use a define instead of #if 0
-rw-r--r--terminal.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 94e4a2e4..2d5c4139 100644
--- a/terminal.c
+++ b/terminal.c
@@ -117,7 +117,9 @@ fdm_ptmx_out(struct fdm *fdm, int fd, int events, void *data)
return true;
}
-#if 0
+#define PTMX_TIMING 0
+
+#if PTMX_TIMING
static struct timespec last = {0};
#endif
@@ -186,7 +188,7 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
if (term->window->frame_callback == NULL) {
/* First timeout - reset each time we receive input. */
-#if 0
+#if PTMX_TIMING
struct timespec now;
clock_gettime(1, &now);
@@ -395,7 +397,7 @@ fdm_delayed_render(struct fdm *fdm, int fd, int events, void *data)
else if (ret2 > 0)
LOG_DBG("upper delay timer expired");
-#if 0
+#if PTMX_TIMING
last = (struct timespec){0};
#endif