High resolution R-R interval measurement