📅  最后修改于: 2022-03-11 14:44:56.304000             🧑  作者: Mango
std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now();
//other stuff
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
std::chrono::duration_cast(end - begin).count()
//time difference in microseconds