On Raspberrypi, the command vcgencmd measure_volts gives the voltage. Is there a way to measure the current being drawn by the Raspberry Pi at a particular time? I have a requirement of measuring energy consumption of RaspberryPi, but do not find any software tool to do so.
AFAIK, there is no RPi equipped with any facility to measure its own current. I bought this device recently which meets most of my needs. There are many similar products, so review the specs to learn which one works best for you.