【发布时间】:2015-03-29 23:37:10
【问题描述】:
我想在模拟我的stateflow程序时得到模拟时间,不知道哪个命令可以给我运行每一步的时间。
你能帮帮我吗?
谢谢。
【问题讨论】:
我想在模拟我的stateflow程序时得到模拟时间,不知道哪个命令可以给我运行每一步的时间。
你能帮帮我吗?
谢谢。
【问题讨论】:
你可以使用tic-toc
tic
% doing something
toc
...
tic
% doing something
toc
总的来说,我会profile
profile on
%Your code here
profile viewer
输出将显示您的代码在每个函数调用或条件语句等上花费了多少时间。更多信息here
【讨论】: