metrics

package
v0.0.0-...-7a98856 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

type Metrics

type Metrics struct {
	AverageTime       int64
	TotalMeasurements int64
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) PercentOfTotal

func (m *Metrics) PercentOfTotal(total *Metrics) int64

func (*Metrics) StartMeasure

func (m *Metrics) StartMeasure() Metric

func (*Metrics) StopMeasure

func (m *Metrics) StopMeasure(metric Metric)

Jump to

Keyboard shortcuts

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