#include <ctime>

clock_t start, stop;

start = clock(); //開始時間

stop = clock(); //結束時間

cout << double(stop - start) / CLOCKS_PER_SEC <<endl;

 


 

這樣就會印出秒數了

arrow
arrow
    全站熱搜

    方格子 發表在 痞客邦 留言(0) 人氣()