]> git.sesse.net Git - remoteglot-book/blobdiff - count.h
Parse timestamps from the binary format. Needs some rework, though.
[remoteglot-book] / count.h
diff --git a/count.h b/count.h
index 8d843c7b70f2c968e7bac5e7189c14299e9e7d26..9cb6a18f36f724df2ccc7ce22d7e6297db75309c 100644 (file)
--- a/count.h
+++ b/count.h
@@ -1,3 +1,4 @@
+#define DUMMY_TIMESTAMP 32503680000  // 3000-01-01 00:00:00 UTC.
 
 struct Count {
        int white = 0;
@@ -7,4 +8,5 @@ struct Count {
        unsigned long long sum_white_elo = 0;
        unsigned long long sum_black_elo = 0;
        int num_elo = 0;
+       time_t first_timestamp = DUMMY_TIMESTAMP;
 };