add elapsed ms to builder

This commit is contained in:
Adrien Marquès 2018-07-08 11:35:45 +02:00
parent e5f7cf1147
commit 6273ded5d7
1 changed files with 5 additions and 1 deletions

View File

@ -6,10 +6,13 @@ import (
"git.xdrm.io/go/aicra/clifmt" "git.xdrm.io/go/aicra/clifmt"
"os" "os"
"path/filepath" "path/filepath"
"time"
) )
func main() { func main() {
starttime := time.Now().UnixNano()
/* (1) Flags /* (1) Flags
---------------------------------------------------------*/ ---------------------------------------------------------*/
/* (1) controller path */ /* (1) controller path */
@ -182,8 +185,9 @@ func main() {
} }
/* (6) finished */ /* (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"), clifmt.Color(32, "finished"),
float64(time.Now().UnixNano()-starttime)/1e6,
clifmt.Color(33, ".build"), clifmt.Color(33, ".build"),
) )