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,11 +6,16 @@ import (
"os"
"sort"
"strconv"
"time"
)
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)
}
func checkNotSum(t int, s []int) bool {