mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
committed by
Bjørn Erik Pedersen
parent
f2946da9e8
commit
e77ca3c105
@@ -27,10 +27,10 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/gohugoio/hugo/common/htime"
|
||||
"github.com/gohugoio/hugo/common/types"
|
||||
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
@@ -235,7 +235,7 @@ func (t *templateExec) ExecuteWithContext(ctx context.Context, templ tpl.Templat
|
||||
defer rlocker.RUnlock()
|
||||
}
|
||||
if t.Metrics != nil {
|
||||
defer t.Metrics.MeasureSince(templ.Name(), time.Now())
|
||||
defer t.Metrics.MeasureSince(templ.Name(), htime.Now())
|
||||
}
|
||||
|
||||
if t.templateUsageTracker != nil {
|
||||
|
Reference in New Issue
Block a user