Duty Cycle Measurement

Is there a way to measure the percent of duty cycle of a voltage signal, like 25%, 50%, on an analog input pin? Thanks!!! http://www.arduino.cc/en/Tutorial/PWM

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