It is a good idea to eat about an hour before a workout so there will be no cramping and eat asap after your workout.