An ECG is a non-invasive test, typically performed by placing electrodes on the patient's chest, arms, and legs. These electrodes detect the electrical activity of the heart, which is then recorded and interpreted by a healthcare provider. It is a quick procedure, usually taking about 10 minutes, and is painless.