Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountAtTime ¶
CountAtTime provides the number of elements at each given time
func (CountAtTime) Add ¶
func (c CountAtTime) Add(time time.Time, count int)
Add insert the count at time
func (CountAtTime) AddNow ¶
func (c CountAtTime) AddNow(count int)
AddNow insert the count at `time.Now()`
func (CountAtTime) Count ¶
func (c CountAtTime) Count(time time.Time)
Count increments the count at time
func (CountAtTime) Keys ¶
func (c CountAtTime) Keys() []time.Time
Keys returns all the time values recorded sorted
func (CountAtTime) Values ¶
func (c CountAtTime) Values() []int
Values returns all the recorded counters sorted
type DurationAtTime ¶
DurationAtTime provides the of period incurred at each given time
Click to show internal directories.
Click to hide internal directories.