Method of measuring battery current with an ammeter