Added time to template file
This commit is contained in:
parent
966ee18b31
commit
80a181656e
@ -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))
|
Loading…
Reference in New Issue
Block a user