shithub: hugo

Download patch

ref: d4caa8ee9571089b6b7d602fe744f786d7af9fee
parent: 51e309854821a5e943e8e64eea218bc82c8f2dc6
author: spf13 <steve.francia@gmail.com>
date: Wed Jul 10 05:21:41 EDT 2013

Adding total time to generated stats.

--- a/main.go
+++ b/main.go
@@ -23,6 +23,7 @@
 	"path/filepath"
 	"runtime/pprof"
 	"sync"
+	"time"
 )
 
 const (
@@ -118,11 +119,11 @@
 }
 
 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
 }
 
--