// NewTicker returns a new Ticker containing a channel that will send the
// current time with a period specified by the duration d.
NewTicker returns a new Ticker containing a channel that will send the
current time with a period specified by the duration d.
// NewTicker returns a new Ticker containing a channel that will send the // current time with a period specified by the duration d .
func (s *Simulator) NewTicker(d time.Duration) *Ticker {
	s.Lock()
	defer s.Unlock()
	if d <= 0 {
		panic("non-positive interval for NewTicker")
	}
	return s.newTicker(d)
}
func ( s * Simulator ) NewTicker ( d time . Duration ) * Ticker { s . Lock ( ) defer s . Unlock ( ) if d <= 0 { panic ( " " ) } return s . newTicker ( d ) }
NewTicker returns a new Ticker containing a channel that will send the
current time with a period specified by the duration d.
NewTicker returns a new Ticker containing a channel that will send the current time with a period specified by the duration d .