#include<time.h>    //获取时间头文件
//
-------------------------------------- clock_t start_time=clock(); //开始时间 { //...... } clock_t end_time=clock(); //结束时间 //-------------------------------------- cout<< "Running time is: " <<static_cast<double>(end_time - start_time)/CLOCKS_PER_SEC <<"(s)"<<endl; //输出运行时间

 

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-07-28
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案