Either periodically or on a beat-to-beat basis, the device measures the mechanical contraction intervals with accelerometer signals, compares the measured intervals with T1 and T2, and adjusts the atrio-ventricular and biventricular offset intervals in a manner than moves the measured intervals toward T1 and T2. [0026] In an exemplary embodiment, a device such as illustrated in FIG. 1 is configure