results of OS_Timing_Getus() & OS_GetTime32() are very different

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • results of OS_Timing_Getus() & OS_GetTime32() are very different

    Hi,

    I'm using embos for m16c with IAR.

    I'm measuring the code performance of several functions. (you may notice my another question about cpu load greater than 100%).

    I'm using OS_GetTime32() and OS_Timing_Getus() for the same function. The results are 22 and 36817, which means 22ms and 36ms. I don't know why they are so different.

    any ideas? (at the same time, I will try using my oscilloscope)

    Edit: To my surprise, OS_GetTime32() is closer to the value from oscilloscope. :!:

    The post was edited 1 time, last by flyingxu ().

  • Hello,

    which embOS M16C IAR Version do you use?
    Which start project do you use?

    Best regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.