timermetrics

package
v0.2.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimerMetrics

type TimerMetrics struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTimerMetrics

func NewTimerMetrics(statusEvery int, prefix string) *TimerMetrics

start a new TimerMetrics to print out metrics every n times

func (*TimerMetrics) Status

func (m *TimerMetrics) Status(startTime time.Time)

func (*TimerMetrics) StatusDuration

func (m *TimerMetrics) StatusDuration(duration time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL