What is the function for external resistor and capacitor which connected to the VDD pin? Does they affect the delay time of detection function?

The external resistor (R1) limits current enter the VDD pin and enhances the ESD protection function. The external capacitor (C1) can prevent VDD voltage fluctuation.

No, both of R1 and C1 do not affect the delay time of detection function.