An electrocardiogram (ECG) is a test that records the electrical activity of the heart. The ECG reflects what’s happening in different areas of the heart and helps identify any problems with the rhythm or rate of your heart. The ECG is painless and takes around 5-10 minutes to perform.Feb 13, 2020