Source File
scaled_ms.go
Belonging Package
src.elv.sh/pkg/testutil
package testutilimport ()// ScaledMs returns ms milliseconds, scaled by the ELVISH_TEST_TIME_SCALE// environment variable. If the variable does not exist, the scale defaults to// 1.func ( int) time.Duration {return time.Duration(float64() * float64(time.Millisecond) * getTestTimeScale())}func () float64 {:= os.Getenv(env.ELVISH_TEST_TIME_SCALE)if == "" {return 1}, := strconv.ParseFloat(, 64)if != nil || <= 0 {return 1}return}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)