MCPcopy
hub / github.com/bnb-chain/bsc / StandardTimer

Struct StandardTimer

metrics/timer.go:139–143  ·  view source on GitHub ↗

StandardTimer is the standard implementation of a Timer and uses a Histogram and Meter.

Source from the content-addressed store, hash-verified

137// StandardTimer is the standard implementation of a Timer and uses a Histogram
138// and Meter.
139type StandardTimer struct {
140 histogram Histogram
141 meter Meter
142 mutex sync.Mutex
143}
144
145// Count returns the number of events recorded.
146func (t *StandardTimer) Count() int64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected