// Move advances the current time to the next available timer deadline
// Returns the new current time and the advanced duration.
Move advances the current time to the next available timer deadline
Returns the new current time and the advanced duration.
// Move advances the current time to the next available timer deadline // Returns the new current time and the advanced duration .
func (s *Simulator) Move() (time.Time, time.Duration) {
	s.Lock()
	defer s.Unlock()
	last := s.now
	if s.heap.hasTask() {
		s.accomplishNextTask()
	}
	return s.now, s.now.Sub(last)
}
func ( s * Simulator ) Move ( ) ( time . Time , time . Duration ) { s . Lock ( ) defer s . Unlock ( ) last := s . now if s . heap . hasTask ( ) { s . accomplishNextTask ( ) } return s . now , s . now . Sub ( last ) }
Move advances the current time to the next available timer deadline
Returns the new current time and the advanced duration.
Move advances the current time to the next available timer deadline Returns the new current time and the advanced duration .