📜  计算时间差 cpp - C++ 代码示例

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

代码示例1
#include 

auto t_start = std::chrono::high_resolution_clock::now();
// the work...
auto t_end = std::chrono::high_resolution_clock::now();

double elapsed_time_ms = std::chrono::duration(t_end-t_start).count();