I'm wanting to make a PIC program that can measure the length of a cable.

The idea is to be able to connect both ends of the cable to different i/o pins and have the PIC calculate how long the cable is.

I know this should be possible, as i've seen cable testers that can do it. Also, my PC's bios can tell me how long my network cable is, down to 0.1 of a meter.

Obviously sending a pulse down the cable and timing how long it takes to reach the other end is out of the question as the PIC wouldn't be anywhere near fast enough.

Does anybody know (or have any ideas) on how this can be done?