阅读背景:

如何在C语言中找到程序的执行时间?

来源:互联网 

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 seconds and clock() seems to give me milliseconds (or centiseconds?) I would like something more precise though. Is there a way I can grab the time with at least microsecond precision?I'm trying to find a way to get the execution t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: