Hi
Could someone help me to measure the runtime that a portion of code elapsed to execute?
The tricky part that we are using fixed point code and is not allowed to add a library nor to include header file since it will add more code.
I know there are many ways to do that and I reviewed them some of them such as:
1- QueryPerformanceCounter() and QueryPerformanceFrequency(),
2- GetTimestamp()
3- GetTickCount()
4- clock(), time()
5- Time Stamp Counter Registers (TSCL and TSCH)
but all need a header file or a library to add.
I want to use the (TSCH, TSCL) but it needs the header file (c6x.h), I wonder if I could get the address of the counter (TSCH, TSCL) and then read the contents and do the calculation.
I'm using the processor TMS470 tool 4.4.16.
Our code is around 1.3 ms, so we need the measurement to be in mircrosecond level.
Open for any new idea.
Thanks
habdulgh