Skip to content

Commit d2c3f06

Browse files
committed
log time
1 parent b115b64 commit d2c3f06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"regexp"
99
"sort"
1010
"strings"
11+
"time"
1112
)
1213

1314
type Flags struct {
@@ -39,6 +40,8 @@ func assert(condition bool, msg string) {
3940
}
4041

4142
func templCSSSort(flags Flags) {
43+
start := time.Now()
44+
4245
// find all .templ files in directory and subdirectories
4346
var files []string
4447
var err error
@@ -137,6 +140,8 @@ func templCSSSort(flags Flags) {
137140
log.Fatal(err)
138141
}
139142
}
143+
144+
log.Println("Done in", time.Since(start))
140145
}
141146

142147
func removeDuplicates(slice []string) []string {

0 commit comments

Comments
 (0)