diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-07-13 12:51:05 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-07-13 12:51:05 +0200 |
commit | 591232eba1809643df1f4a6075ff9581b8bb2f7a (patch) | |
tree | 92e2c464158d03ef9c83f153ba5b88c39581d9f8 /include/ticker.h | |
parent | 95283d70eee749d984b2ca07c0b61d39f9bb350d (diff) | |
download | silly_game-591232eba1809643df1f4a6075ff9581b8bb2f7a.tar.xz |
move headers to src
Signed-off-by: Lizzy Fleckenstein <lizzy@vlhl.dev>
Diffstat (limited to 'include/ticker.h')
-rw-r--r-- | include/ticker.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/ticker.h b/include/ticker.h deleted file mode 100644 index f6387c4..0000000 --- a/include/ticker.h +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-FileCopyrightText: 2024 Lizzy Fleckenstein <lizzy@vlhl.dev> -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -#ifndef TICKER_H -#define TICKER_H - -#include <time.h> -#include <stdint.h> -#include <stdbool.h> - -#define NANOS 1000000000 - -typedef struct { - struct timespec timestamp; - uint64_t freq_nanos; -} ticker; - -void ticker_init(ticker *t, uint64_t f); -bool ticker_tick(ticker *t, uint64_t *dtime); -int ticker_timeout(ticker *t); - -#endif |