Versions in this module Expand all Collapse all v0 v0.1.0 Dec 19, 2023 Changes in this version + var IdleRate = 1e-13 + func SetClock(c clock.Clock) + type Meter struct + func NewMeter() *Meter + func (m *Meter) Mark(count uint64) + func (m *Meter) Reset() + func (m *Meter) Snapshot() Snapshot + func (m *Meter) String() string + type MeterRegistry struct + func (r *MeterRegistry) Clear() + func (r *MeterRegistry) FindIdle(since time.Time) []string + func (r *MeterRegistry) ForEach(iterFunc func(string, *Meter)) + func (r *MeterRegistry) Get(name string) *Meter + func (r *MeterRegistry) Remove(name string) + func (r *MeterRegistry) TrimIdle(since time.Time) (trimmed int) + type Snapshot struct + LastUpdate time.Time + Rate float64 + Total uint64 + func (s Snapshot) String() string