The better the analog front-end for measuring battery current, the more accurately you'll be able to gauge the remaining run-time for your battery-backup system. Here's a discrete front-end design ...