How do you measure the duty cycle of sinus with a arduino uno?

Unkown21:
My problem what I have got at this moment is I dont know how to write te c code for the software for the arduino uno.

Start here: http://arduino.cc/en/Tutorial/HomePage