📅  最后修改于: 2022-03-11 14:44:52.413000             🧑  作者: Mango
#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;