How to use a etimer module calculation program execution time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use a etimer module calculation program execution time

613 Views
张松张
Contributor I

Using SDK etimer configuration module, the realization of the application execution time

0 Kudos
2 Replies

441 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

usually we use systick to count program execution time. It is faster and more close to cpu core. Before you execute a program, you read the timer, and after execution, read again. The execution time is the difference.

Of course you can use other timer, such as PIT, LPTMR or PTM. But almost nobody use them in that way.

Regards,

Jing

0 Kudos

441 Views
张松张
Contributor I

Thank you for your reply, now I use SDK configured PIT module to calculate the program execution time function.In addition, I would like to ask a question about whether the STM module must produce an interrupt, whether the interrupt can be shielded.

Look forward to your reply

0 Kudos