accurate BPM and IBI on CPU