Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 291 Bytes

计算时间.md

File metadata and controls

10 lines (7 loc) · 291 Bytes

计算时间

#include<chrono>
std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();
std::chrono::steady_clock::time_point t2 = std::chrono::steady_clock::now();
double ttrack = std::chrono::duration_cast< std::chrono::duration<double>>(t2-t1).count();