The optimal way of MCU power consumption measurement
Use a linear regulator and have the ammeter measure the input of the regulator.  That way the unit under test still sees a constant voltage.  Make sure to put a ceramic cap immediately between the regulator input and its ground.