Arduino Ammeter

Won't measuring the voltage across the inductor give it's max current instead of average?