美文网首页
C++ 测试程序运行时间

C++ 测试程序运行时间

作者: Young1217 | 来源:发表于2019-03-09 14:19 被阅读0次
#include <ctime>


clock_t startTime,endTime;

startTime = clock();
auto vars = mpc.Solve(state, coeffs);
endTime = clock();
cout << "The run time is: " << (double)(endTime - startTime) / CLOCKS_PER_SEC  << "s" << endl;
    

相关文章

网友评论

      本文标题:C++ 测试程序运行时间

      本文链接:https://www.haomeiwen.com/subject/ecvspqtx.html