How to measure the current size of battery resistance