Point-to-point range measurement using an IR receiver
You can't use light like that to measure distance. Think about how long it would take light to travel 10cm, and then you'll see what you can't use that to measure distance.

All IR receivers give you 'relative' distance because they can only measure relative distance as a function of relative change in received light intensity, which makes your measurements dependent on a number of environmental factors.