Measurement of Inrush current