It measures the number of times per minute that the heart contracts or beats. The speed of the heartbeat varies as a result of physical activity, threats to safety, and emotional responses. The resting heart rate refers to the heart rate when a person is relaxed.