MCPcopy Create free account
hub / github.com/cortexproject/cortex / AddWallTime

Method AddWallTime

pkg/querier/stats/stats.go:63–69  ·  view source on GitHub ↗

AddWallTime adds some time to the counter.

(t time.Duration)

Source from the content-addressed store, hash-verified

61
62// AddWallTime adds some time to the counter.
63func (s *QueryStats) AddWallTime(t time.Duration) {
64 if s == nil {
65 return
66 }
67
68 atomic.AddInt64((*int64)(&s.WallTime), int64(t))
69}
70
71// LoadWallTime returns current wall time.
72func (s *QueryStats) LoadWallTime() time.Duration {

Callers 5

TestStats_CopyFunction · 0.95
TestStats_WallTimeFunction · 0.95
TestStats_MergeFunction · 0.95
MergeMethod · 0.95
WrapMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestStats_CopyFunction · 0.76
TestStats_WallTimeFunction · 0.76
TestStats_MergeFunction · 0.76