Length of time between pulses ?

It sounds to me like the first thing you need is a detector that can sense the LED. Then you can write code to time the length between readings.