I'd like to check the "time consumption / time measurement" of the different parts/functions of my programme - how long it takes:
- to process one complete run through the programme (the "infinite" loop)
- function for sending/receicing data from/to USART
- write data to a LCD display
- and so on
and right now I do it the "simple" way - there's 1ms timer (time base) and I use different counters to monitor how long it takes to process a function etc.
Is there a FOC programme (I'm neither Mr. B. Gates nor Mr. M. Zuckerberg ) which could be used to do this "time consumption monitoring" in a more professional manner?
I use the AVR Studio 4.18 Build 716, avr-gcc 4.3.3, programming language is C for my ATMega8
Thanks in advance