Skip to content

Commit

Permalink
Add duration
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Jun 15, 2017
1 parent f046a3a commit 13dcf6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
)
}

0 comments on commit 13dcf6b

Please sign in to comment.