bench

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bench

type Bench struct {
	Lapses  []lapse
	Average lapse
	Total   lapse
	// contains filtered or unexported fields
}

func BenchNew

func BenchNew(showResults ...bool) (bench *Bench)

BenchNew: default showResult = true

func (*Bench) Lapse

func (b *Bench) Lapse(label ...string)

func (*Bench) NanoConv

func (b *Bench) NanoConv(nano int64) (min, sec, ms, ns int64)

func (*Bench) Reset

func (b *Bench) Reset()

func (*Bench) Start

func (b *Bench) Start(label ...string)

func (*Bench) Stop

func (b *Bench) Stop()

Jump to

Keyboard shortcuts

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