Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeAverage ¶
type TimeAverage struct { SampleCount uint // how many measurements in .measurements Newest time.Time // what's the newest entry in .measurements Oldest time.Time // what's the oldest entry in .measurements (usually .measurements[0].T) // contains filtered or unexported fields }
func New ¶
func New(timeWindow, rate time.Duration, initialavg float64, samplerFunc measurementFunc) *TimeAverage
func (*TimeAverage) Average ¶
func (s *TimeAverage) Average() float64
func (*TimeAverage) Start ¶
func (s *TimeAverage) Start()
func (*TimeAverage) Stop ¶
func (s *TimeAverage) Stop()
Click to show internal directories.
Click to hide internal directories.