I think in general people would say to use an Oscilloscope. Take a 1 Ohm resistor and connect it in series with the power, then put the oscilloscope across that.
If you have an oscilloscope that can log, you could export that log and then add up all the values.
I guess an easier method is to get a big capacitor (supercapacitor) and to charge it up to a known voltage. Power Espruino off that, and you should be able to see the voltage lowering over time. The discharge should be more or less linear, so working out the average power draw from that would be pretty easy.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think in general people would say to use an Oscilloscope. Take a 1 Ohm resistor and connect it in series with the power, then put the oscilloscope across that.
If you have an oscilloscope that can log, you could export that log and then add up all the values.
I guess an easier method is to get a big capacitor (supercapacitor) and to charge it up to a known voltage. Power Espruino off that, and you should be able to see the voltage lowering over time. The discharge should be more or less linear, so working out the average power draw from that would be pretty easy.