This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

getting time of program code in code tms320c6418



Hi! I am using TMS 320C6418 EVM. I want to get time taken by part of an program code to execute. I have found instructions like CLK_gethtime(), CLK_getltime() with time.h header file albeit unsuccessfully.  E.g.:

    begin1=CLK_gethtime();
    delay_usec(10000);
    end1=CLK_gethtime();
    res=(end1-begin1);

The code is returninng garbage with no change in result with different delays. Please help.....