📜  时间函数c++代码示例

📅  最后修改于: 2022-03-11 14:44:52.413000             🧑  作者: Mango

代码示例2
#include  
using namespace std::chrono; 

auto start = high_resolution_clock::now(); 

// perform function to be timed here...

auto stop = high_resolution_clock::now(); 
cout << duration_cast(stop - start).count() << endl;