Real time compensation of the path spread in large time-of-flight systems