It can take hours or days. It depends on the specific bacteria and the amount of bacteria. If it is a bacteria that produces toxins the effects can happen very quickly especially if toxin production had already started in the food that was eaten (i.e. you consumed a bunch of toxin along with the bacteria that made…