Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2013-07-10 17:21:41 +0400
committerspf13 <steve.francia@gmail.com>2013-07-10 17:21:41 +0400
commitd4caa8ee9571089b6b7d602fe744f786d7af9fee (patch)
tree6dff173310cf5359e4980ad3c766af4fd8b8e637 /main.go
parent51e309854821a5e943e8e64eea218bc82c8f2dc6 (diff)
Adding total time to generated stats.
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index 9bb5ccd80..8d37afee4 100644
--- a/main.go
+++ b/main.go
@@ -23,6 +23,7 @@ import (
"path/filepath"
"runtime/pprof"
"sync"
+ "time"
)
const (
@@ -118,11 +119,11 @@ func serve(port string, config *hugolib.Config) {
}
func buildSite(config *hugolib.Config) *hugolib.Site {
+ startTime := time.Now()
site := hugolib.NewSite(config)
site.Build()
-
site.Stats()
-
+ fmt.Printf("in %v ms\n", int(1000 * time.Since(startTime).Seconds()))
return site
}