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

Struct StandardMeter

metrics/meter.go:167–173  ·  view source on GitHub ↗

StandardMeter is the standard implementation of a Meter.

Source from the content-addressed store, hash-verified

165
166// StandardMeter is the standard implementation of a Meter.
167type StandardMeter struct {
168 lock sync.RWMutex
169 snapshot *MeterSnapshot
170 a1, a5, a15 EWMA
171 startTime time.Time
172 stopped atomic.Bool
173}
174
175func newStandardMeter() *StandardMeter {
176 return &StandardMeter{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected