But In the event of very long traces of code, It will be far more sensible to make use of timers similar to the Systick timer or any other timer to find the time necessary as DWT_CYCCNT doesn't have any flag to indicate an overflow. #embeddedsystems #arm #stm32 Assorted cooling https://govindhtech.com/gigabytes-ces-2024-showcase-wows-world/