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