github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/metrics/timer.go (about)

     1  package metrics
     2  
     3  import "time"
     4  
     5  // TimerVec stores multiple dynamically created timers
     6  type TimerVec interface {
     7  	With(labels map[string]string) Timer
     8  }
     9  
    10  // Timer tracks distribution of value.
    11  type Timer interface {
    12  	Record(value time.Duration)
    13  }