How can i know the delay of pulse?

Hi all there, i need your help

i have in my hands a microcontroller .
on 1 of his pins it creates pulses all time like this: 1010101010101010...

so i want to connect this pin with an input pin of arduino to read this pulse, (off course i will share the ground and vdd)

so i want a code (simple please) that reads the delay(ms) of each pulse, when it is on high (1) and when it is on low (0).

Please have a look at this function:

http://arduino.cc/en/Reference/PulseIn

--
Check out our new shield: http://www.ruggedcircuits.com/html/gadget_shield.html