probe

package
v0.0.0-...-d9e9996 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeedCalc

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

SpeedCalc used to calculate the speed

func NewSpeedCalc

func NewSpeedCalc(prefix string) *SpeedCalc

NewSpeedCalc init a speed calculator

func (*SpeedCalc) Add

func (sc *SpeedCalc) Add(flag string)

Add add speed calculator time

func (*SpeedCalc) Clear

func (sc *SpeedCalc) Clear()

Clear clear speed calculator

func (*SpeedCalc) GetMaxSpeed

func (sc *SpeedCalc) GetMaxSpeed() map[string]float64

GetMaxSpeed return the max speed

func (*SpeedCalc) ShowInfo

func (sc *SpeedCalc) ShowInfo(log log.Logger)

ShowInfo show the speed

func (*SpeedCalc) ShowLoop

func (sc *SpeedCalc) ShowLoop(log log.Logger)

ShowLoop show the speed with a loop

Jump to

Keyboard shortcuts

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