From a08e917dbb2310fbc5852e675992b6fd5499cb86 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 17 Feb 2023 22:58:37 +0100 Subject: Use SIGINT to stop player and update player status less frequently --- src/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util.h') 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 +#include #include #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); -- cgit v1.2.3-71-gd317