1. An inductor current estimator for a switching power supply, the inductor current estimator comprising: a first sensing and averaging component that generates an average of a switch voltage at an input to the switching power supply; a second sensing and averaging component that generates an average of an output voltage of the switching power supply; a first subtraction component that receives the average of the switch voltage and the average of the output voltage; a first multiplying component that receives an output of the first subtraction component and that multiplies the output of the first subtraction component by a first model parameter; a second multiplying component that multiplies an input to the second multiplying component by a second model parameter; an adding component that adds an output of the first multiplying component and an output of the second multiplying component; and a delay component that receives an output of the adding component, wherein an input to the second multiplying component is an output of the delay component.