From 2c5f859afca568d1d5c78d3aeee9a7fd40b4c8d2 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sun, 21 Nov 2021 13:21:45 +0100 Subject: [PATCH] delete now useless performance.py provide day skeleton --- aoclib/__init__.py | 1 - aoclib/performance.py | 8 -------- day_skel.py | 13 +++++++++++++ 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 aoclib/performance.py create mode 100644 day_skel.py diff --git a/aoclib/__init__.py b/aoclib/__init__.py index e06a1d0..53ea5d2 100644 --- a/aoclib/__init__.py +++ b/aoclib/__init__.py @@ -1,4 +1,3 @@ from .day import * from .tools import * from .output import * -from .performance import * diff --git a/aoclib/performance.py b/aoclib/performance.py deleted file mode 100644 index 8b57019..0000000 --- a/aoclib/performance.py +++ /dev/null @@ -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])) diff --git a/day_skel.py b/day_skel.py new file mode 100644 index 0000000..a9ee758 --- /dev/null +++ b/day_skel.py @@ -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 ""