]> git.sesse.net Git - remoteglot-book/blob - count.h
Parse timestamps from the binary format. Needs some rework, though.
[remoteglot-book] / count.h
1 #define DUMMY_TIMESTAMP 32503680000  // 3000-01-01 00:00:00 UTC.
2
3 struct Count {
4         int white = 0;
5         int draw = 0;
6         int black = 0;
7         unsigned int opening_num = 0;
8         unsigned long long sum_white_elo = 0;
9         unsigned long long sum_black_elo = 0;
10         int num_elo = 0;
11         time_t first_timestamp = DUMMY_TIMESTAMP;
12 };