From 04ef46a067dd02d1f7e5db58eb6756bb7e64a9e2 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 28 Nov 2021 04:28:58 -0500 Subject: [PATCH] [xray] take time at the beginning of demo --- src/demo/xray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/xray.c b/src/demo/xray.c index 156b8bcfa..684825eab 100644 --- a/src/demo/xray.c +++ b/src/demo/xray.c @@ -175,6 +175,7 @@ xray_thread(void *vmarsh){ } int xray_demo(struct notcurses* nc){ + uint64_t curns = clock_getns(CLOCK_MONOTONIC); if(!notcurses_canopen_videos(nc)){ return 0; } @@ -201,7 +202,6 @@ int xray_demo(struct notcurses* nc){ pthread_t tid1, tid2; int last_frame = 0; struct ncplane* kplane = NULL; // to kill - uint64_t curns = clock_getns(CLOCK_MONOTONIC); struct marsh m1 = { .slider = slider, .nc = nc,