Thalamus
All this applies to consciousness and conscious behaviour. Automatic responses to sudden pain happen instantaneously (bare foot on a pin for example). But they are consciously perceived later.