To perform an ECG, a nurse or technician places electrodes on the patient's chest, arms, and legs. These electrodes are connected to an ECG machine that records the heart's electrical activity. The patient is usually asked to lie still and breathe normally to obtain accurate readings. The test typically takes about 5-10 minutes.