// AddOrPanic advances the current time by duration d and fires all expired timers if d >= 0
// else panic
// Returns the new current time.
AddOrPanic advances the current time by duration d and fires all expired timers if d >= 0
else panic
Returns the new current time.
// AddOrPanic advances the current time by duration d and fires all expired timers if d > = 0 // else panic // Returns the new current time .
func (s *Simulator) AddOrPanic(d time.Duration) time.Time {
	s.Lock()
	defer s.Unlock()
	if d < 0 {
		panic(timeReversal)
	}
	now, _ := s.set(s.now.Add(d))
	return now
}
func ( s * Simulator ) AddOrPanic ( d time . Duration ) time . Time { s . Lock ( ) defer s . Unlock ( ) if d < 0 { panic ( timeReversal ) } now , _ := s . set ( s . now . Add ( d ) ) return now }
AddOrPanic advances the current time by duration d and fires all expired timers if d >= 0
else panic
Returns the new current time.
AddOrPanic advances the current time by duration d and fires all expired timers if d > = 0 else panic Returns the new current time .