Measure CPU time usage in Matlab (in milliseconds)

前端 未结 2 427
离开以前
离开以前 2021-01-24 03:53

How can I measure the time used by Matlab in the execution of some commands? I am looking for something like linux time command, which returns the actual CPU used (

2条回答
  •  天涯浪人
    2021-01-24 04:12

    For a simple clock time solution, use tic and toc

    profile provides a detailed report code per line, you can choose between cpu time and real time.

提交回复
热议问题