mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
committed by
Bjørn Erik Pedersen
parent
f2946da9e8
commit
e77ca3c105
@@ -25,6 +25,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/gohugoio/hugo/common/htime"
|
||||
"github.com/gohugoio/hugo/common/types"
|
||||
"github.com/gohugoio/hugo/compare"
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
@@ -129,7 +130,7 @@ func (s *Store) TrackValue(key string, value any, cached bool) {
|
||||
// MeasureSince adds a measurement for key to the metric store.
|
||||
func (s *Store) MeasureSince(key string, start time.Time) {
|
||||
s.mu.Lock()
|
||||
s.metrics[key] = append(s.metrics[key], time.Since(start))
|
||||
s.metrics[key] = append(s.metrics[key], htime.Since(start))
|
||||
s.mu.Unlock()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user