X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/48cf657b615567153e5ed786b6034f9b46733f9a..dc5fda352920a27da020717ee7775fa89bf9fb7e:/src/game.c diff --git a/src/game.c b/src/game.c index 999d526..2ad3a7e 100644 --- a/src/game.c +++ b/src/game.c @@ -218,14 +218,14 @@ void game_begin(struct board *board) board->time_start = gethrxtime(); } -static int_fast32_t elapsed(struct board *board) +int_fast32_t game_elapsed(struct board *board) { return (gethrxtime() - board->time_start) / 1000000; } int_fast32_t game_finish(struct board *board) { - int_fast32_t t = elapsed(board); + int_fast32_t t = game_elapsed(board); int i; for (i = 0; i < 4; i++) {