User Activity

I have a Nucleo 64 STM32F303RE, I would like to measure the current consumed by the MCU while running application. How do I do it ?
Hi all,I am using the stm8l152c6 discovery board which has one user button.I would like to implement that the button pressed once, blink the led, when pressed twice, the led off, also button pressed for 5 sec or less than 5 sec, do somthing.Please as...