That should work just as well as a multimeter. (If it's over 5V, of course, you'll need a voltage divider.)
Batteries don't discharge linearly, but once you get a feel for the discharge pattern of your particular battery in your particular application, you should get useful results.
My laptop usually thinks there's 3 hours left right before it dies!