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

Method LoadWallTime

pkg/querier/stats/stats.go:72–78  ·  view source on GitHub ↗

LoadWallTime returns current wall time.

()

Source from the content-addressed store, hash-verified

70
71// LoadWallTime returns current wall time.
72func (s *QueryStats) LoadWallTime() time.Duration {
73 if s == nil {
74 return 0
75 }
76
77 return time.Duration(atomic.LoadInt64((*int64)(&s.WallTime)))
78}
79
80func (s *QueryStats) AddResponseSeries(series uint64) {
81 if s == nil {

Callers 6

TestStats_WallTimeFunction · 0.95
TestStats_MergeFunction · 0.95
reportQueryStatsMethod · 0.80
writeServiceTimingHeaderFunction · 0.80
TestStats_CopyFunction · 0.80
MergeMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestStats_WallTimeFunction · 0.76
TestStats_MergeFunction · 0.76
TestStats_CopyFunction · 0.64