Application note from NXP Semiconductors on MCU peripheral power consumption measurement. Link here (PDF)
This Application Note outlines the steps to measure the power consumption of a peripheral and figure out some key points in the measurement. The document takes low-power timer (LPTMR) and LPUART as examples to introduce the method to measure the power consumption of peripheral. The test code is developed in IAR and FRDM-KE15Z board.