[問題] 計算執行時間

看板C_and_CPP (C/C++)作者時間14年前 (2012/04/16 00:40), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Linux C 請問各位大大Linux C有沒有計算程式執行時間的函式? 老師要我們寫sort thread 執行時間 去查 Linux C function 沒有找到 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.135.28.88

04/16 00:47, , 1F
Use gettimeofday or getrusage.
04/16 00:47, 1F
文章代碼(AID): #1FYle56v (C_and_CPP)
文章代碼(AID): #1FYle56v (C_and_CPP)