In an echo scenario, the time measured is for the sound's round trip (source to obstacle and back), so the distance to the obstacle is half the total distance traveled by the sound.