stats

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

func New

func New() Stats

func (*Stats) Insert

func (s *Stats) Insert(val float64)

func (*Stats) Query

func (s *Stats) Query(quantile float64) time.Duration

func (*Stats) Time

func (s *Stats) Time() Timer

type Timer

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

func (*Timer) Mark

func (t *Timer) Mark()

Jump to

Keyboard shortcuts

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