Swarming and reaction time