internal

package
v0.158.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify added in v0.154.0

func Notify(c chan<- struct{}) func()

func RemainingDuration

func RemainingDuration(from time.Time, nonScaledDuration time.Duration) time.Duration

func ScaledDuration added in v0.154.0

func ScaledDuration(d time.Duration) time.Duration

func SetSpeed

func SetSpeed(s float64) func()

func SetTime

func SetTime(target time.Time, opt Option) func()

func TimeNow added in v0.154.0

func TimeNow() time.Time

Types

type Option

type Option struct {
	Freeze   bool
	Unfreeze bool
}

Jump to

Keyboard shortcuts

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