I want to measure how much battery is consumed while switching on Wifi, scanning and connecting to a an AP. I tried doing it with the API to see battery level. But that API gives battery level on a scale of 100 which is not granular enough to find out the power consumed in turning on the Wifi and scanning only once.
Is there a way out to measure this?