Use an ammeter to directly measure the battery capacity