import "github.com/iotexproject/iotex-core/pkg/prometheustimer"
type Timer struct {
// contains filtered or unexported fields
}
Timer defines a timer to measure performance
End ends the timer
type TimerFactory struct {
// contains filtered or unexported fields
}
TimerFactory defines a timer factory to generate timer
New returns a new Timer
func (factory *TimerFactory) NewTimer(labels ...string) *Timer
NewTimer returns a timer with start time as now
Package prometheustimer imports 4 packages (graph) and is imported by 4 packages. Updated 2019-08-20. Refresh now. Tools for package owners.