C++ 常用功能:程序运行计时
#include <iostream>
#include <chrono>int main()
{// 测试运行时间auto start = std::chrono::steady_clock::now();// Run codeauto end = std::chrono::steady_clock::now();std::chrono::duration<double> elapsed_seconds = end - start;elapsed_seconds = end - start;std::cout << "ReRender time cc: " << elapsed_seconds.count() << "s" << std::endl;
}