From a13750209b3836a4a6a16a7ba881625f397f160f Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 7 Mar 2024 20:19:26 +0100 Subject: Implement timers properly The timers shown with `M-x timers` are now actual timings. --- test/minibuffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/minibuffer.c') diff --git a/test/minibuffer.c b/test/minibuffer.c index 474f664..96fecca 100644 --- a/test/minibuffer.c +++ b/test/minibuffer.c @@ -10,6 +10,7 @@ #include "dged/display.h" #include "dged/minibuffer.h" #include "dged/settings.h" +#include "dged/timers.h" static struct buffer b = {0}; static struct buffers bufs = {0}; @@ -21,6 +22,7 @@ void *alloc_fn(size_t sz) { return frame_allocator_alloc(g_alloc, sz); } void init() { if (b.name == NULL) { settings_init(10); + timers_init(); b = buffer_create("minibuffer"); buffers_init(&bufs, 10); } @@ -33,6 +35,7 @@ void destroy() { if (b.name != NULL) { buffer_destroy(&b); settings_destroy(); + timers_destroy(); windows_destroy(); } } -- cgit v1.2.3