timermetrics

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2015 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