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

timer

HI i am debuging a program written in C if i select 12MHz clock for the program There is a timer in the project window showing the time passed and the no of states(machine cycles). Can i rely on the timer for my time calculations???????

Parents
  • so what do you do, ho experienced developer? write your code directly in machine code?

    Yes, that is exactly what should be done. Any other way is no good and is ru**ish. I don't understand people who have TranslateAllYourOwnCodeFromCToAssemblyPhobia.

    When you do this, you can always get optimized code that is slower than the compiler but it is easier to debug. You must always consider debugging, because when you write code you always need to debug.

    Mallund.

Reply
  • so what do you do, ho experienced developer? write your code directly in machine code?

    Yes, that is exactly what should be done. Any other way is no good and is ru**ish. I don't understand people who have TranslateAllYourOwnCodeFromCToAssemblyPhobia.

    When you do this, you can always get optimized code that is slower than the compiler but it is easier to debug. You must always consider debugging, because when you write code you always need to debug.

    Mallund.

Children