From 66f2250b2107c50656fc9bb9401c686e5e9e8492 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 24 Dec 2022 10:25:43 -0800 Subject: [PATCH] day 24 timing --- day24/sol.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/day24/sol.py b/day24/sol.py index 5597169..0cdcf30 100644 --- a/day24/sol.py +++ b/day24/sol.py @@ -122,8 +122,14 @@ show(0) show(1) #show((len(data)-2)*(len(data[0])-2)) +import time +t1 = time.time() start_node = start + (0, 1) print(astar.search(start_node, is_goal, neighbors, heuristic)) +t2 = time.time() start_node = start + (0, 3) print(astar.search(start_node, is_goal, neighbors, heuristic)) + +print("part 1", t2 - t1) +print("part 2", time.time() - t2)