c++ 记录程序运行时间

低精度测量时间 头文件web #include <time.h> 程序:svg clock_t start, end; start = clock(); // 测试的程序 std::cout << "time consume: " << (double)(clock() - start) / CLOCKS_PER_SEC << std::endl; 高精度测量时间 #include <chro
相关文章
相关标签/搜索