The system settings Battery menu ought to show you a breakdown of how much battery apps are using, regardless of whether they're in the foreground or background. The system menu usually doesn't show much detail, though -- for that, try a 3rd party app like GSam Battery Monitor.