Simultaneous measurement of atrial and ventricular pacemaker activity