How to get time intervals on STM32?

前端 未结 2 1351
旧时难觅i
旧时难觅i 2020-12-10 09:33

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

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-10 10:02

    If you've got HAL available try;

    int millis = HAL_GetTick();
    

提交回复
热议问题