討論串[問題] unix下 c++程式 CLOCKS_PER_SEC 與CLK_ …
共 7 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者WalkingIce ( 殺手哥吉拉 13)時間16年前 (2009/02/12 05:12), 編輯資訊
0
0
0
內容預覽:
看看 header 檔就知道了。(or "man 3 clock"). /usr/include/bits/time.h. CLK_TCK 這個數字是 100,它來自於 sysconf(2). clock ticks - _SC_CLK_TCK. The number of clock ticks
(還有227個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者allanyh (allan)時間16年前 (2009/02/12 01:15), 編輯資訊
0
0
0
內容預覽:
請教各位版友:. 我在 unix下執行c++程式. void main(). {. clock_t start, finish;. double duration1,duration2;. start = clock();. .... .... finish = clock();. duration
(還有212個字)
首頁
上一頁
1
2
下一頁
尾頁