Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + var GlobalCounters = NewCounters() + var LinearTime linearTime + type Complexity interface + Fit func(samples Samples) (fit Fit, err float64) + type Counters struct + func NewCounters() *Counters + func (m *Counters) All() map[string]interface{} + func (m *Counters) Duration(name string) *DurationCounter + func (m *Counters) Integer(name string) *IntegerCounter + type DurationCounter int64 + func Duration(name string) *DurationCounter + func (c *DurationCounter) Add(t time.Duration) + func (c *DurationCounter) Get() time.Duration + func (c *DurationCounter) Reset() + func (c *DurationCounter) Set(t time.Duration) + func (c *DurationCounter) Start() time.Time + func (c *DurationCounter) Stop(startTime time.Time) + func (c *DurationCounter) Time(f func()) + type Fit interface + String func() string + type IntegerCounter int64 + func Integer(name string) *IntegerCounter + func (c *IntegerCounter) Add(i int64) + func (c *IntegerCounter) Get() int64 + func (c *IntegerCounter) Increment() + func (c *IntegerCounter) Reset() + func (c *IntegerCounter) Set(v int64) + type LinearFit struct + func NewLinearFit(α, β time.Duration) LinearFit + func (f LinearFit) String() string + type Sample struct + Index int + Time time.Duration + type Samples []Sample + func (s *Samples) Add(index int, duration time.Duration) + func (s *Samples) AddOrUpdate(index int, duration time.Duration) + func (s Samples) Analyse() Fit + func (s Samples) Len() int + func (s Samples) Less(i, j int) bool + func (s Samples) String() string + func (s Samples) Swap(i, j int) Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021