arjun.a
rename files
6c7b14a
raw
history blame contribute delete
798 Bytes
Ticket Name: Linux/TDA2: Measure execution time in A15 link on TDA2xx
Query Text:
Part Number: TDA2 Tool/software: Linux Hello, I am using TDA2xx and Vision SDK 3.02, build machine is Ubuntu 16.04 with kernel 4.16.7. I have a VSDK link running on A15 core with Linux and would like to find out the execution time of one of the functions. This link used to run on RTOS before and Utils_getCurTimeInUsec() was used. However, I cannot find equivalent function to use with HLOS. Thank you in advance. Regards, Nick
Responses:
Hi Nick, on HLOS there is "OSA_getCurTimeInMsec" (defined in vision_sdk/links_fw/src/hlos/osa/src/osa.c). If you need microseconds, I think you can use also standard gettimeofday() from "sys/time.h" (OSA_getCurTimeInMsec is implemented using gettimeofday). Regards, Yordan