📜  como medir tiempo de ejecucion cpp - C++ 代码示例

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

代码示例1
#include 
#include  
 
unsigned t0, t1;
 
t0=clock()
// Code to execute
t1 = clock();
 
double time = (double(t1-t0)/CLOCKS_PER_SEC);
cout << "Execution Time: " << time << endl;