Versions in this module Expand all Collapse all v1 v1.0.0 Oct 20, 2025 Changes in this version + type Stats struct + func NewStats(windowSize time.Duration) *Stats + func NewStatsWithClock(windowSize time.Duration, clk clock.Clock) *Stats + func (s *Stats) Add(value int64) + func (s *Stats) Average() (float64, bool) + func (s *Stats) Len() int + func (s *Stats) Merge(other *Stats) + func (s *Stats) Percentile(percentiles []float64) ([]int64, bool) + func (s *Stats) Values() []int64