10 ms? That is super slow! You should have no problem with any of the proposed circuits. If it were 10 us it could require some thought. If you get into trouble I would suspect the Pi - AFAIK unless you are using RTOS or something similar the OS may decide your application is not important at the moment and freeze it for many long milliseconds. I have little experience with Pi but it is said for timing critical tasks it is better to use Arduino (or other simple MCU) controlled from the Pi.