Speed is the answer. Stay on your feet and keep moving.
The scenario punishes hesitation far more than it punishes mistakes, so commit to a route and follow it through rather than creeping around checking corners. Learn where the safe windows are and you will clear it comfortably on a second attempt.