Added time to template file

This commit is contained in:
FrederikBaerentsen 2024-12-07 21:10:04 +01:00
parent 966ee18b31
commit 80a181656e

View File

@ -1,8 +1,9 @@
#!/bin/python3 #!/bin/python3
import sys,re import sys,time,re
from pprint import pprint from pprint import pprint
sys.path.insert(0, '../../') sys.path.insert(0, '../../')
from fred import list2int,get_re,nprint,lprint,loadFile from fred import list2int,get_re,nprint,lprint,loadFile
start_time = time.time()
input_f = 'test' input_f = 'test'
@ -14,10 +15,6 @@ part = 1
######################################### #########################################
if 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: if part == 2:
exit() exit()
print("--- %s seconds ---" % (time.time() - start_time))