I will show you a good tip when you want to measure the time or cycles taken for your code. By means of CMSIS ( Cortex Micro-controller Software Interface and Standard) which is an application software interface for Cortex-M MCU, you can do it so easily. Here is the easy way of using CMSIS interface to measure cycles. Let’s do it.
Read more