When you think of electricity, you probably think of the juice flowing from wall outlets that powers the TV. But a similar kind of electrical activity allows the heart to pump blood. An electrocardiogram (ECG) checks to see whether the heart's wiring is up to code by measuring the rhythm of its contractions. Here's what you need to know about it.