Respuesta :

Send wave from your location to the object and wait until echo is back.
Measure the time taken.

If you know the speed of wave (say sound wave), than just multiply by half time taken wave to return