If I were to drink an 8 oz. glass of water very quickly, how long would it take for that water to leave the stomach?

Note, I am not asking how long it would be before you eliminate (pee) the water from your body. I want to know how long the 8 oz. of water is pooled in your stomach to dilute something which could be harmful to the lining of your stomach, like say for instance, ibuprofen.