I want to see how long it takes to run a model

2 次查看(过去 30 天)
Good morning, I have a problem. I want to see how long it takes to run a model. But I do not know how to calculate the different times. (UpdateDiagramTime, AccelBuildTime and SimTime). If someone could help me. Thank you very much
  1 个评论
Mohamed Belkhayat
Mohamed Belkhayat 2019-8-27
编辑:Mohamed Belkhayat 2019-8-27
tic;sim('model');a=toc;save sim_time a;
this runs the model and saves the time to a file named sim_time in case you need that.

请先登录,再进行评论。

采纳的回答

Mischa Kim
Mischa Kim 2016-9-15
编辑:Mischa Kim 2016-9-15
Fernando, I assume you are talking about Simulink models. There is a functionality called profiler that might help you. See the documentation for more detail.
  1 个评论
Fernando  Beltrán
Fernando Beltrán 2016-9-15
I understand that the parties in which the total simulation time is divided are.
Normal mode: compileAndLinkPhase, simulationPhase and terminationPhase
Accelerator mode:compileAndLinkPhase, simulationPhase and initiliazionPhase.
Is this true? Can you tell me which corresponds to each part?
Thank you very much

请先登录,再进行评论。

更多回答(1 个)

Fernando  Beltrán
Fernando Beltrán 2016-9-15
Thank you very much

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by