Measuring Heart Rate in Pulsed Wave or M-Mode