c語言中如何添加計時函數,統計程序執行的時間

這裏舉一個例子,行優先和列優先遍歷二維數組的程序執行時間比較,這裏須要調用 time.h 編譯環境爲vs2013web #include <stdio.h> #include <stdlib.h> #include <time.h> #define M 10000000 #define N 10 short a[M][N]; void assign_array_rows() { int
相關文章
相關標籤/搜索