You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
561 B

package utils
import (
func Perf(date string, parse func(string), solve1 func(), solve2 func()) {
// Store time to print out execution time
start := time.Now()
log.Printf("%s: Starting program to solve %s\n", date, date)
log.Printf("%s: Spent %s on parsing input\n", date, time.Since(start))
start = time.Now()
log.Printf("%s.01: Spent %s on solving part 1\n", date, time.Since(start))
start = time.Now()
log.Printf("%s.02: Spent %s on solving part 2\n", date, time.Since(start))