In any event, the therapy window is a function of an approximate duration of the gastric electrical stimulation therapy that is effective in producing a desired therapeutic effect for a desired period of time during and after termination of the gastric electrical stimulation therapy.