delete now useless performance.py

provide day skeleton
This commit is contained in:
Stefan Harmuth 2021-11-21 13:21:45 +01:00
parent 1e9844e79c
commit 2c5f859afc
3 changed files with 13 additions and 9 deletions

View File

@ -1,4 +1,3 @@
from .day import *
from .tools import *
from .output import *
from .performance import *

View File

@ -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
View 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 ""