A good rule of thumb is to avoid eating at least two hours before class—your body will thank you.