The Hexagon SDK provides APIs to measure the elapsed time in both microseconds and processor cycles(pcycles).
The HAP_perf APIs are used by clients for profiling their code when running on the DSP. The profiling can be done in both microseconds and pcycles based on the needs. Morevover, the HAP_perf library also provides sleep APIs to the clients.
The HAP_perf APIs include the following functions: