]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/game/game.h
Public calculate_dtime function
[dungeon_game.git] / plugins / game / game.h
index 7ae93448e743513429deacb41663579db029b510..60c1d615c0a1bac664dd4e537d03adcde0f234f9 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdbool.h>
 #include <sys/ioctl.h>
 #include <stddef.h>
+#include <time.h>
 #define MAP_HEIGHT 1000
 #define MAP_WIDTH 1000
 #define LIGHT 10
@@ -111,6 +112,7 @@ int clamp(int v, int max, int min);
 int max(int a, int b);
 int min(int a, int b);
 void *make_buffer(void *ptr, size_t size);
+double calculate_dtime(struct timespec from, struct timespec to);
 
 void quit();
 bool player_dead();