Stomach virus

How long do you throw up with a stomach virus?