package testutil

import (
	
	
	

	
)

// 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 
}