1. A method of measuring a resistance in a circuit, comprising: maintaining a substantially constant voltage across the circuit; repeatedly charging and discharging a capacitance through the circuit; determining a value of a time-average current into the capacitance in response to repeatedly charging and discharging the capacitance during a set time period; and determining the resistance in the circuit based on the value of the time-average current.