mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
17 lines
334 B
Go
17 lines
334 B
Go
package metrics
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// ResettingTimer is used for storing aggregated values for timers, which are reset on every flush interval.
|
|
type ResettingTimer interface {
|
|
Values() []int64
|
|
Snapshot() ResettingTimer
|
|
Percentiles([]float64) []int64
|
|
Mean() float64
|
|
Time(func())
|
|
Update(time.Duration)
|
|
UpdateSince(time.Time)
|
|
}
|