// SetOrPanic advances the current time to t and fires all expired timers if s.now <= t
// else panic with time reversal
// Returns the advanced duration.
SetOrPanic advances the current time to t and fires all expired timers if s.now <= t
else panic with time reversal
Returns the advanced duration.
// SetOrPanic advances the current time to t and fires all expired timers if s . now < = t // else panic with time reversal // Returns the advanced duration .
func (s *Simulator) SetOrPanic(t time.Time) time.Duration {
	s.Lock()
	defer s.Unlock()
	if t.Before(s.now) {
		panic(timeReversal)
	}
	_, d := s.set(t)
	return d
}
func ( s * Simulator ) SetOrPanic ( t time . Time ) time . Duration { s . Lock ( ) defer s . Unlock ( ) if t . Before ( s . now ) { panic ( timeReversal ) } _ , d := s . set ( t ) return d }
SetOrPanic advances the current time to t and fires all expired timers if s.now <= t
else panic with time reversal
Returns the advanced duration.
SetOrPanic advances the current time to t and fires all expired timers if s . now < = t else panic with time reversal Returns the advanced duration .