37、计算用的时间

#include<iostream>
#include<Windows.h> 
using namespace std;
int main(){
  
  clock_t time;
  
  time=clock();
  
  cout<<time<<endl;
  
  Sleep(1000);
  
  cout<<clock()-time<<"毫秒"<<endl;
  
  system("pause");    
    
}

猜你喜欢

转载自blog.csdn.net/qq_30272539/article/details/81335912
37