First, it may not have been what you ate last night. Many of the most common foodborne illnesses have incubation periods (time between ingestion and symptoms) that can be hours, days or even several weeks.
Incubation Periods for Common Foodborne Pathogen
Pathogen – Incubation Period
Staphlococcus aureus – 1 to 8 hours, typically 2 to