How can I find the execution time of a section of my program in C?

后端 未结 11 1989
花落未央
花落未央 2020-12-31 05:23

I\'m trying to find a way to get the execution time of a section of code in C. I\'ve already tried both time() and clock() from time.h, but it seems that time() returns seco

11条回答
  •  梦谈多话
    2020-12-31 05:44

    You want a profiler application.

    Search keywords at SO and search engines: linux profiling

提交回复
热议问题