From 6273ded5d706409c4fb5f207651cf4d367f0a629 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 8 Jul 2018 11:35:45 +0200 Subject: [PATCH] add elapsed ms to builder --- cmd/aicra/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/aicra/main.go b/cmd/aicra/main.go index 6f46105..9df6442 100644 --- a/cmd/aicra/main.go +++ b/cmd/aicra/main.go @@ -6,10 +6,13 @@ import ( "git.xdrm.io/go/aicra/clifmt" "os" "path/filepath" + "time" ) func main() { + starttime := time.Now().UnixNano() + /* (1) Flags ---------------------------------------------------------*/ /* (1) controller path */ @@ -182,8 +185,9 @@ func main() { } /* (6) finished */ - fmt.Printf("\n[ %s ] files are located inside the %s directory inside the project folder\n", + fmt.Printf("\n[ %s | %.0f ms ] files are located inside the %s directory inside the project folder\n", clifmt.Color(32, "finished"), + float64(time.Now().UnixNano()-starttime)/1e6, clifmt.Color(33, ".build"), )