Distance measurement with minimal accuracy