summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-30 14:15:15 -0400
committerJune McEnroe <june@causal.agency>2017-07-30 14:15:15 -0400
commitf48c10f46eab1c11827516a0610f7cd71d74bdad (patch)
tree5642eaee3da22677b315c89faaf2f60e76478b42 /torus.h
parentAssert stable struct Tile field offsets (diff)
downloadtorus-f48c10f46eab1c11827516a0610f7cd71d74bdad.tar.gz
torus-f48c10f46eab1c11827516a0610f7cd71d74bdad.zip
Add tile create and access timestamps
Diffstat (limited to '')
-rw-r--r--torus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/torus.h b/torus.h
index bb012f2..968c9f6 100644
--- a/torus.h
+++ b/torus.h
@@ -2,6 +2,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
+#include <time.h>
 
 #define ALIGNED(x) __attribute__((aligned(x)))
 
@@ -25,7 +26,8 @@ enum {
 #define CELL_INIT_Y (CELL_ROWS / 2)
 
 struct Tile {
-    bool present;
+    time_t create;
+    time_t access;
     char cells[CELL_ROWS][CELL_COLS] ALIGNED(16);
     uint8_t colors[CELL_ROWS][CELL_COLS] ALIGNED(16);
 } ALIGNED(4096);