diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-17 22:58:37 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-17 22:58:37 +0100 |
| commit | a08e917dbb2310fbc5852e675992b6fd5499cb86 (patch) | |
| tree | 6dcdfe462e8b27c2eaf091aa55dae3fcf0b2f7bd /src/util.h | |
| parent | 4efa0d0f0303be076d013c61a83b2d769778f37d (diff) | |
| download | tmus-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
