返回列表 發帖

計時函數

  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<string>
  4. using namespace std;
  5. int main()
  6. {
  7.     cout <<"計時開始"<<endl;
  8.     system("pause");//暫停
  9.     cout << "從剛剛到現在過了 " << clock() <<"毫秒"<<endl; //內建的函式/函數
  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

TOP

返回列表