latency

package
v0.0.0-...-aac1211 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seq

func Seq(callbacks ...func())

Types

type Latency

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

func UseLatency

func UseLatency() *Latency

func (*Latency) Once

func (l *Latency) Once() *Once

func (*Latency) Timings

func (l *Latency) Timings() *Timings

type Once

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

func NewOnce

func NewOnce() *Once

func (*Once) ExecOnce

func (o *Once) ExecOnce(s int, c func())

func (*Once) Reset

func (o *Once) Reset()

type Timings

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

func NewTimings

func NewTimings() *Timings

func (*Timings) CleanEachTimings

func (t *Timings) CleanEachTimings(s int)

func (*Timings) ExecEach

func (t *Timings) ExecEach(c func(), s int, d time.Duration)

func (*Timings) ExecFor

func (t *Timings) ExecFor(c, e func(), s int, d time.Duration)

Jump to

Keyboard shortcuts

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