#include <stdio.h> #include <future> using namespace std; int main() { double START, END; START = clock(); // [Your code here..] END = clock(); char szTime[100]; sprintf_s(szTime, 100, "Execute time : %lf - %lf = %lf \n",END, START, END - START); printf_s(szTime); system("PAUSE"); }
目前分類:C++ (3)
- Jan 28 Sun 2018 01:43
[C++] 評估程式碼執行時間
- Jan 07 Sun 2018 17:19
[C++] static_cast 用法說明 (基礎篇)
語法(Syntax) :
static_cast < new_type > ( expression )
Returns a value of type new_type
.
- Nov 25 Wed 2015 17:10
C/C++ : signed int 和 int 宣告差別在哪裡?