Fix time calculation in RF cavities
This MR fixes an issue in the RF cavities regarding the calculation of the time elapsed in the cavity and the longitudinal phase advance.
This MR fixes an issue in the RF cavities regarding the calculation of the time elapsed in the cavity and the longitudinal phase advance.