I'm looking to measure PWM in % rather than seconds or ms. The only possible way that I seem to be able to do this is to measure the period of the high pulse and measure the period of the low pulse and calculate the percentage based of these two variables.