Distance measurement with large operating range