The R-R interval is measured from an ECG tracing. The R-wave is the tallest, most prominent peak in the QRS complex, representing ventricular depolarization. The interval is simply the time difference between the peak of one R-wave and the peak of the subsequent R-wave.
The formula is straightforward:
R-R Interval = Time of R-wave (n+1) - Time of R-wave (n)
Where 'n' is the current R-wave and 'n+1' is the next R-wave.
The R-R interval is typically measured in milliseconds (ms) or seconds (s).