Help!!!

Last night I ate broccoli and Brussels sprouts and I'm thinking it is greatly affecting my 6 week old as we are now on hour 12 of her waking up screaming because her stomach hurts. 
My question is; how long does it take for food to "get out" of your breastmilk? Do I need to pump in order to get rid of it?