I want to measure how long does a single function take on STM32. The only thing I could find is SysTick_Handler. However, that is an periodic interrupt, but wha
SysTick_Handler
If you've got HAL available try;
int millis = HAL_GetTick();