Other Parts Discussed in Thread: SYSBIOS
I want to measure the elapsed time after the code is uploaded. How can I do this?
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.
I want to measure the elapsed time after the code is uploaded. How can I do this?
You are right. I mean the time running the application after the device is power on.
Hi Umut,
Here are a few options you can explore to achieve this:
- Timer API from the TI Drivers: https://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_4_30_00_54/docs/drivers/doxygen/html/_timer_8h.html
- Standard C library function clock(): https://www.tutorialspoint.com/c_standard_library/c_function_clock.htm#:~:text=The%20C%20library%20function%20clock_t,since%20the%20program%20was%20launched.&text=On%20a%2032%20bit%20system,value%20approximately%20every%2072%20minutes.
Best Regards,
Jenny
Hi Umut,
You can also use the System Clock Manager Clock_getTicks from ti.sysbios.knl.Clock, as explained in the SYS/BIOS TI-RTOS Kernel Runtime API documentation.
Regards,
Ryan
Application running time could be infinite. You should measure something specific like C function running time.
-kel