Skip to content

Commit

Permalink
Adding total time to generated stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Jul 10, 2013
1 parent 51e3098 commit d4caa8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"path/filepath"
"runtime/pprof"
"sync"
"time"
)

const (
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit d4caa8e

Please sign in to comment.