Pacemakers require an adjustment of the time setting based on cardiac ejection period. This patented method uses arterial pulse waveform features to detect the correct ejection period for pacemaker timing. It provides an accurate and easy way to program a pacemaker.