This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Execution Time

Hello, I want to determine execution time required for a function which executes when a serial interrupt occurs. I am using Keil C compiler for it. Can anybody tell me procedure for the same.

Regards,
Abhijeet R. Mudgal.

Parents
  • I want to determine execution time required for a function"

    Why do you want to do that?

    Have you simply been set this as an exercise, or is it an important requirement for your application for you to know this?

    If it is important for your application for you to know this, then you should not be writing in 'C' - because 'C' gives you absolutely no guarantee whatsoever that it won't change!

    If it is important for your application for you to know this, then you should be writing it in assembler - then you know exactly what you will get!

Reply
  • I want to determine execution time required for a function"

    Why do you want to do that?

    Have you simply been set this as an exercise, or is it an important requirement for your application for you to know this?

    If it is important for your application for you to know this, then you should not be writing in 'C' - because 'C' gives you absolutely no guarantee whatsoever that it won't change!

    If it is important for your application for you to know this, then you should be writing it in assembler - then you know exactly what you will get!

Children