#include <chrono>
using namespace std::chrono;
int main(int argc,char** argv)
{
auto startTime = high_resolution_clock::now();
auto endTime = high_resolution_clock::now();
cout<<"用时: "<<duration_cast<microseconds>(endTime - startTime).count()/1000000.0<<endl;
}
c++计时函数
最新推荐文章于 2024-09-22 18:04:56 发布