https://mevihub.com/measure-the-clock-frequency-of-the-microcontroller/
Measure The Clock Frequency Of The Microcontroller