Re: [程式] R 運算時間 system.time
看板Statistics作者wanggz (http://0rz.tw/0c5am)時間16年前 (2009/11/18 11:38)推噓0(0推 0噓 1→)留言1則, 1人參與討論串2/2 (看更多)
※ 引述《s3011 (真‧人肉Matlab)》之銘言:
: print(system.time(for(i in 1:25) X%*%X))
: user system elapsed
: 114.19 0.38 121.04
: 請問該如何解讀這三個數字呢?
: 謝謝
?proc.time 中有解釋
The definition of 'user' and 'system' times is from your OS.
Typically it is something like
_The 'user time' is the CPU time charged for the execution of user
instructions of the calling process. The 'system time' is the CPU
time charged for execution by the system on behalf of the calling
process._
而 elapsed 是實際上耗費的時間
--
R-Info: http://rinfo.nchc.org.tw/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.110.61.52
※ 編輯: wanggz 來自: 140.110.61.52 (11/18 11:40)
→
11/19 10:30, , 1F
11/19 10:30, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):