Adding program timer to the program #1
1 changed files with 6 additions and 1 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue