delete now useless performance.py
provide day skeleton
This commit is contained in:
parent
1e9844e79c
commit
2c5f859afc
@ -1,4 +1,3 @@
|
||||
from .day import *
|
||||
from .tools import *
|
||||
from .output import *
|
||||
from .performance import *
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
def print_execution_time(day, part, avg_time):
|
||||
units = ['s', 'ms', 'μs', 'ns']
|
||||
unit = 0
|
||||
while avg_time < 1:
|
||||
avg_time *= 1000
|
||||
unit += 1
|
||||
|
||||
print("Average execution time for day %s part %s: %1.2f%s" % (day, part, avg_time, units[unit]))
|
||||
13
day_skel.py
Normal file
13
day_skel.py
Normal file
@ -0,0 +1,13 @@
|
||||
from aoclib import AOCDay
|
||||
from typing import Any
|
||||
|
||||
|
||||
class Day(AOCDay):
|
||||
test_solutions_p1 = []
|
||||
test_solutions_p2 = []
|
||||
|
||||
def part1(self) -> Any:
|
||||
return ""
|
||||
|
||||
def part2(self) -> Any:
|
||||
return ""
|
||||
Loading…
Reference in New Issue
Block a user