We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09e90f commit 708af25Copy full SHA for 708af25
cmd/debug/kfxdump/main.go
@@ -9,6 +9,7 @@ import (
9
"slices"
10
"strconv"
11
"strings"
12
+ "time"
13
14
"github.com/h2non/filetype"
15
@@ -30,6 +31,11 @@ func main() {
30
31
os.Exit(2)
32
}
33
34
+ defer func(startedAt time.Time) {
35
+ duration := time.Since(startedAt)
36
+ fmt.Fprintf(os.Stderr, "\nExecution time: %s\n", duration)
37
+ }(time.Now())
38
+
39
path := flag.Arg(0)
40
b, err := os.ReadFile(path)
41
if err != nil {
0 commit comments