From 22b285ffc4345bee05772509a60fb77fb90d16a0 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 16 Apr 2026 23:02:27 +0300 Subject: Add pathfinding timing --- path.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'path.h') diff --git a/path.h b/path.h index bceed05..ab22f8b 100644 --- a/path.h +++ b/path.h @@ -6,6 +6,8 @@ /* The currently chosen path func */ extern Path (*path_func)(int, Map, size_t **, size_t, size_t, Position, Position, char **, char); +/* Time it took to calculate a path */ +extern double path_time; /* dirs can be 4 or 8 to disallow or allow diagonal movement */ //Path breadth_first_search_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); -- cgit v1.2.3