A cardiac stimulating apparatus and method which optimizes cardiac performance by determining, from a filtered waveform transmitted from an accelerometer contained within the cardiac pacer, an optimum timing interval between at least one of intrinsic and paced stimulations of pre-selected chambers of the heart. Digitized data of the accelerometer signal, corresponding with identified R--R intervals, are stored for a plurality of preselected timing intervals for analysis and comparison. The accelerometer signal is filtered to isolate features of the waveform associated with specific cardiac events including for example, the first heart sound, the second heart sound or an amplitude in the frequency domain thereof. Characteristic values of these features of the accelerometer signal are calculated over a plurality of complete R--R intervals for each of the preselected timing intervals. The characteristic values are analyzed and compared to determine which timing interval optimizes cardiac performance. The cardiac stimulating apparatus and method may be used in any of several pacing modes including A-V pacing, V--V pacing, or A--A pacing.