2013-02-22 02:20 AM
Hi
Can I measure the duration of a loop in the program of STM32F4 using TIMER ? For example ______________________________________Begin (Timer x)
For (;;) //infinite loop { .... ... ... .. } End (Timer x)______________________________________
The program give me : Timer = 12 ms . Thanks2013-02-22 02:40 AM
2013-02-22 07:07 AM
the ONLY way to get absolute timing for a process is to set an I/O bit at start and reset and put a scope on it.
The programs that 'calculate' time do not take cache misses into account Erik2013-02-22 08:31 AM
For (;;) //
infinite
loop No need to measure that loop at all - the clue is in the comment...!!2013-02-22 10:05 AM
It'll take a while I'd guess....
2013-02-22 02:08 PM
For (;;) //infinite loop
{ .... ... break; .. } even broken code can be broken :)