func runIntervals(config intervalConfig, interval time.Duration) {
	for i := 0; i < config.repeat; i++ {
		for _, in := range config.intervals {
			start := time.Now()
			ticker := time.NewTicker(interval)

			for _ = range ticker.C {
				elapsed := time.Since(start)
				fmt.Fprintf(out, "\r%v", timeutil.Format(elapsed))

				if elapsed > in {
					ticker.Stop()
					fmt.Fprintln(out)
					fmt.Fprintln(out, "-----")
					break
				}
			}
		}
	}
}
// runIntervals runs the various intervals defined in the given configuration.
runIntervals runs the various intervals defined in the given configuration.
// runIntervals runs the various intervals defined in the given configuration .
func runIntervals(config intervalConfig, interval time.Duration) {
	for i := 0; i < config.repeat; i++ {
		for _, in := range config.intervals {
			start := time.Now()
			ticker := time.NewTicker(interval)
			for _ = range ticker.C {
				elapsed := time.Since(start)
				fmt.Fprintf(out, "\r%v", timeutil.Format(elapsed))
				if elapsed > in {
					ticker.Stop()
					fmt.Fprintln(out)
					fmt.Fprintln(out, "-----")
					break
				}
			}
		}
	}
}
func runIntervals ( config intervalConfig , interval time . Duration ) { for i := 0 ; i < config . repeat ; i ++ { for _ , in := range config . intervals { start := time . Now ( ) ticker := time . NewTicker ( interval ) for _ = range ticker . C { elapsed := time . Since ( start ) fmt . Fprintf ( out , " \r " , timeutil . Format ( elapsed ) ) if elapsed > in { ticker . Stop ( ) fmt . Fprintln ( out ) fmt . Fprintln ( out , " " ) break } } } } }
runIntervals runs the various intervals defined in the given configuration.
runIntervals runs the various intervals defined in the given configuration .