Laser Rangefinder.
A laser rangefinder emits a laser beam straight to your target, and the target reflects the laser beam back to your device. The unit then notes the amount of time needed for the beam to be reflected back, and you end up with an incredibly accurate measurement of how far a particular object is from you.