Using clock() to measure execution time

后端 未结 3 799
遥遥无期
遥遥无期 2020-12-19 11:09

I am running a C program using GCC and a proprietary DSP cross-compiler to simulate some functioality. I am using the following code to measure the execution time of particu

3条回答
  •  甜味超标
    2020-12-19 11:53

    clock measures the cpu time and not the wallclock time. Since you are not running the majority of your code on the cpu, this is not the right tool.

提交回复
热议问题