qpc

package
v0.0.0-...-a8a18e3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FprintSummary

func FprintSummary(out io.Writer, hists ...*History)

func PrintSummary

func PrintSummary(hists ...*History)

func Since

func Since(start Count) time.Duration

Types

type Count

type Count int64

func Now

func Now() Count

Now returns ticks

func (Count) Duration

func (count Count) Duration() time.Duration

func (Count) Nanoseconds

func (count Count) Nanoseconds() int64

func (Count) Sub

func (a Count) Sub(b Count) Count

type History

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

func NewHistory

func NewHistory(name string) *History

func (*History) Last

func (hist *History) Last() time.Duration

func (*History) PrintSummary

func (hist *History) PrintSummary()

func (*History) SampleCount

func (hist *History) SampleCount() int

func (*History) Start

func (hist *History) Start()

func (*History) Stop

func (hist *History) Stop()

Jump to

Keyboard shortcuts

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