ref: 8c43e26f2c2733b18f5b3e6451d05f7fc4c3708d
parent: d714d3c4c72b146f41f747f412962bc7f2b346a3
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Sep 16 15:47:01 EDT 2020
show delay in the info
--- a/main.c
+++ b/main.c
@@ -19,6 +19,7 @@
static Channel *audiofinished;
static char info[256];
static int showinfo;
+static uvlong delay;
static void
audioproc(void *x)
@@ -49,7 +50,6 @@
drawframe(Frame *f)
{
uvlong x, end, left;
- static uvlong delay;
Rectangle r, clip;
lockdisplay(display);
@@ -223,7 +223,7 @@
res = alt(a);
switch(res){
case Cframe:
- snprint(info, sizeof(info), " %dx%d %s %s ", frame->w, frame->h, d->info, d->s->info);
+ snprint(info, sizeof(info), "%zdms %dx%d %s %s ", delay/1000000ULL, frame->w, frame->h, d->info, d->s->info);
drawframe(frame);
break;