iotex-core: Index | Files

package prometheustimer

import ""


Package Files


type Timer Uses

type Timer struct {
    // contains filtered or unexported fields

Timer defines a timer to measure performance

func (*Timer) End Uses

func (timer *Timer) End()

End ends the timer

type TimerFactory Uses

type TimerFactory struct {
    // contains filtered or unexported fields

TimerFactory defines a timer factory to generate timer

func New Uses

func New(name, tip string, labelNames []string, defaultLabels []string) (*TimerFactory, error)

New returns a new Timer

func (*TimerFactory) NewTimer Uses

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 5 packages. Updated 2019-08-20. Refresh now. Tools for package owners.