time

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationRange

func DurationRange(low time.Duration, high time.Duration) time.Duration

DurationRange gets a random time interval between these two values.

func DurationRatio

func DurationRatio(value time.Duration, by float64) time.Duration

DurationRatio returns the value +/- the floating point value. For instance, for -/+ 5%, pass 0.05.

Types

This section is empty.

Jump to

Keyboard shortcuts

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