X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/aebcc2d9a4090d8136f750463b1cfbb73916d717..4ba1a1949117408cf81132b4f168a4e7f0a79ac3:/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++) {