From 80a181656e12858f4e4bb9086d38096204778873 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Sat, 7 Dec 2024 21:10:04 +0100 Subject: [PATCH] Added time to template file --- solution.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/solution.py b/solution.py index 4363a57..7ec8d9e 100644 --- a/solution.py +++ b/solution.py @@ -1,8 +1,9 @@ #!/bin/python3 -import sys,re +import sys,time,re from pprint import pprint sys.path.insert(0, '../../') from fred import list2int,get_re,nprint,lprint,loadFile +start_time = time.time() input_f = 'test' @@ -14,10 +15,6 @@ part = 1 ######################################### if part == 1: - with open(input_f) as file: - for line in file: - - ######################################### @@ -27,3 +24,5 @@ if part == 1: ######################################### if part == 2: exit() + +print("--- %s seconds ---" % (time.time() - start_time)) \ No newline at end of file