timing

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestDuration

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

RequestDuration is a structure which allows the calculation of randomised request durations

func NewRequestDuration

func NewRequestDuration(percentile50, percentile90, percentile99 time.Duration, variance int) *RequestDuration

NewRequestDuration creates a new RequestDuration

func (*RequestDuration) Calculate

func (r *RequestDuration) Calculate() time.Duration

Calculate a new random request duration

Jump to

Keyboard shortcuts

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