timetracker

package
v0.0.0-...-5720ada Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockTracker

func NewMockTracker(stubStart bool) *mockTracker

Types

type Finisher

type Finisher func()

func (Finisher) Finish

func (f Finisher) Finish()

type Tracker

type Tracker interface {
	Start() Finisher
	Record(duration time.Duration)
	Average() time.Duration
}

func NewExponentialMovingAverageTracker

func NewExponentialMovingAverageTracker(window uint) Tracker

Jump to

Keyboard shortcuts

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