MCPcopy
hub / github.com/segmentio/kafka-go / observeDuration

Method observeDuration

stats.go:156–158  ·  view source on GitHub ↗
(v time.Duration)

Source from the content-addressed store, hash-verified

154}
155
156func (s *summary) observeDuration(v time.Duration) {
157 s.observe(int64(v))
158}
159
160func (s *summary) snapshot() SummaryStats {
161 avg := int64(0)

Callers 2

initializeMethod · 0.80
readMethod · 0.80

Calls 1

observeMethod · 0.95

Tested by

no test coverage detected