timing

package
v0.0.0-...-a1c22f6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifyDeadlocks

func IdentifyDeadlocks(ctx context.Context, after time.Duration) func()

Can generate up to 2mb of console output, so it is only enabled in e2e.

Types

type DefaultTimex

type DefaultTimex struct {
}

func NewDefaultTimex

func NewDefaultTimex() *DefaultTimex

func (*DefaultTimex) Now

func (dt *DefaultTimex) Now() time.Time

func (*DefaultTimex) Sleep

func (dt *DefaultTimex) Sleep(d time.Duration)

type Timex

type Timex interface {
	Sleep(d time.Duration)
	Now() time.Time
}

Timex is the interface used to customize Sleep/Now and the time related mocking thing.

Jump to

Keyboard shortcuts

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