When designing/programming Arduinos/IOT devices, i frequently had the problem of evaluating their current consumption, which is highly variable if you are using radios/WiFi modules.
The idea is to use this cheap device:
Mobile-Power-Current-and-Voltmeter-Ammeter
It is designed for usb, but works pretty well for any voltage between 3v and 9v (did not test higher).
The advantage is, that it displays the used mAh and the total time, so you can get easily an average over a long time.
If you are tweaking your current consumption you will find that the measured intensity range is too high, you get only a 10mA resolution with theoretical a max range of 9,9A.
You can easily hack the device to diffeent mA sensitivity:
Changing the mA Range
On the back of the you will find a SMD 0,05Ω Resistor labeled R050.
You may remove it and use two 1Ω in // instead which will give you a 1mA display resolution with a max of 1A.
Using two 10Ω resistors will give you 0,1mA resolution with a max range of 100mA respectively.
Enjoy!