add duration output

This commit is contained in:
2020-12-11 21:57:10 -05:00
parent 9244b2e178
commit 24b59f71fa
11 changed files with 55 additions and 0 deletions

View File

@@ -6,12 +6,17 @@ import (
"os"
"strconv"
"strings"
"time"
"unicode"
)
func main() {
start := time.Now()
partOne()
duration := time.Since(start)
partTwo()
duration2 := time.Since(start)
fmt.Printf("p1: %s, p2: %s\n", duration, duration2-duration)
}
//To try to debug the problem, they have created a list (your puzzle input) of passwords (according to the corrupted database) and the corporate policy when that password was set.