📌  相关文章
📜  错误:'std::high_resolution_clock' 尚未声明 - C++ 代码示例

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

代码示例1
#include 
using std::chrono::high_resolution_clock;
using std::chrono::microseconds;
using std::chrono::duration_cast;

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