a switching regulator includes an inductive element to provide a first voltage across the element and at least one switch to energize and de - energize the inductive element to produce an output voltage . a controller of the regulator constructs an indication of a current from the first voltage and operates the switch to regulate the output voltage in response to the indication .