From 13dcf6b36c9fe4230cf6c478800191d8d7377f3c Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Thu, 15 Jun 2017 18:15:25 -0400 Subject: [PATCH] Add duration --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d028ba3..83fcdfd 100644 --- a/main.go +++ b/main.go @@ -197,6 +197,7 @@ func main() { fatal("To use the default bucket you need to specify an upload directory (-dir)") } + start := time.Now() files, err := GetFilesFromGlobsList(*filesArg) if err != nil { fatal("failed to get files %s", err) @@ -219,5 +220,10 @@ func main() { fatal("failed to write versions json file %s", err) } - fmt.Printf("\nSuccessfully uploaded static assets and generated %s\n", *outputFilename) + elapsed := time.Since(start) + fmt.Printf( + "\nSuccessfully uploaded static assets and generated %s in %s\n", + *outputFilename, + elapsed, + ) }