The procedure is usually performed by a trained sonographer or a cardiologist. The patient lies on an examination table, and a transducer (ultrasound probe) coated with gel is moved across the chest. The gel helps transmit sound waves that create images of the heart on a monitor. The test typically takes between 30 to 60 minutes and is painless.