#include  <time.h> 

clock_t start = clock();  //时间起始 
/*待测试代码*/         
clock_t end   = clock(); //时间测试结束

cout<<end - start<<endl; //计算打印出运行时间,单位ms

 

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2021-12-24
  • 2021-10-06
  • 2022-01-23
  • 2021-12-21
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案