summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-17 22:58:37 +0100
committerLouis Burda <quent.burda@gmail.com>2023-02-17 22:58:37 +0100
commita08e917dbb2310fbc5852e675992b6fd5499cb86 (patch)
tree6dcdfe462e8b27c2eaf091aa55dae3fcf0b2f7bd /src/util.h
parent4efa0d0f0303be076d013c61a83b2d769778f37d (diff)
downloadtmus-a08e917dbb2310fbc5852e675992b6fd5499cb86.tar.gz
tmus-a08e917dbb2310fbc5852e675992b6fd5499cb86.zip
Use SIGINT to stop player and update player status less frequently
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 73cfc10..0f14bdc 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,7 @@
#pragma once
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#define MAX(a, b) ((a) > (b) ? (a) : (b))
@@ -34,3 +35,5 @@ char *appendstrf(char *alloc, const char *fmtstr, ...);
char *sanitized(const char *instr);
const char *timestr(unsigned int seconds);
+
+uint64_t current_ms(void);