added the time between peaks function