Cardiac pacing may be controlled through retrospective detection of events
that are sensed during a given period of time. In some embodiments a
detection decision is made substantially prior to the end of an escape
interval. In some embodiments the mode of detection may be changed near
the end of the period of time. In some embodiments the period of time is
extended when an event is detected near the end of the period of time.