stomach bug

the past 2 days i’ve had an awful headache, fever, chills, and extremely tired. Today I woke up with awful stomach pain I went to my doctor and they said I have the stomach bug. I haven’t thrown up yet, can people get the stomach bug and not throw up? and how long does it usually last for i’ve been feeling awful for 3 days today.