From 20d89f9c5a98105b5b094be27f65347d21288b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 9 Dec 2020 07:17:14 +0100 Subject: timing --- 20/py/d07.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '20/py/d07.py') diff --git a/20/py/d07.py b/20/py/d07.py index e484f2b..48fa3d2 100644 --- a/20/py/d07.py +++ b/20/py/d07.py @@ -2,6 +2,7 @@ import sys import regex as re import functools +import time class Node: @@ -49,5 +50,7 @@ if __name__ == "__main__": input = open("../input/07", "r").readlines() # graph(parse(input)) - print(pt1(input)) + start = time.time() print(pt2(input)) + print(pt1(input)) + print(time.time() - start) -- cgit v1.2.1