Time of flight - this measures the time taken for a light pulse to travel to the target and back.
Multiple frequency phase-shift - this measures the phase shift of multiple frequencies on reflection then solves some simultaneous equations to give a final measure.