Adding program timer to the program #1

Merged
eoghanconlon73 merged 3 commits from timer into main 2024-08-23 11:35:37 +00:00
Showing only changes of commit e771a65910 - Show all commits

View file

@ -1,10 +1,15 @@
package main package main
import "fmt" import (
"fmt"
"time"
)
func main() { func main() {
start := time.Now()
input := FileParse("input/day01/sample.txt") input := FileParse("input/day01/sample.txt")
for _, s := range input { for _, s := range input {
fmt.Println(s) fmt.Println(s)
} }
fmt.Printf("This took %v to run", time.Since(start))
} }