this is what I need! and to measure it realtime and in nanolevel! :D
You shine light through it an observe what happens.
Imagine a laboratory rig - you have a standard lab converging lens (biconvex and made of solid glass say). The lens is fixed over a hole in one side of a box that is closed on all the other sides.
The back of the inside of the box acts as a screen.
If you shine parallel light through the lens, you will get a spot on the back of the box where the light scatters. The size of the spot depends on the focal length of the lens and the internal dimensions of the box.
This spot will act as an "object" - since it is a diffuse light source.
Looking obliquely through the lens you'll be able to see it and take measurements.
If the back of the box is also patterned in some way - like the back of the eyeball usually is - and you have a good idea of the internal dimensions of the box, you can determine quite a lot about the size of the spot and deduce the focal length. You can also tell if the image is virtual or real. Get the idea?
You don't have to rely just on the lens in the box - you can add your own (taking their known properties into account) to adjust the image to something that is, perhaps, easier to handle.
Of course - you can always just use a autorefractor ;)