请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TDA2E 您好!
我能不能知道在 VISION SDK 中进行性能评测的步骤?
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.
您好!
我能不能知道在 VISION SDK 中进行性能评测的步骤?
您好!
使用以下 API 以 微秒为单位获取当前全局时间
utils_getCurGlobalTimeInUsec(): 此 API 只能在 BIOS 内核中调用(IPU、DSP、EVE、A15 (BIOS))
OSA_getCurGlobalTimeInUsec(): 此 API 只能在 Linux 内核中调用(A15(Linux)
用于性能评测的示例代码
uint64 currTime、prestTime、diffTime;
prestateTime = Utils_getCurGlobalTimeInUsec ();
MyFunc ();
当前时间= Utils_getCurGlobalTimeInUsec();
扩散时间=当前时间-前推时间;
VPS_printf ("由 Myfunc 花费的时间为%u\n",diffTime);
谢谢
加维拉尤