Main Content
logsimulationtime
Syntax
Description
logsimulationtime(
logs the total execution time of the sections in the code execution profile associated
with a variable inside simulation output.testCase
,'CodeExecutionProfileVariable'
varName
)
Note
To use the method logsimulationtime
, the model should be
configured with CodeExecutionProfiling
to on
and CodeProfilingSaveOptions
to
Alldata.
[
loads the model and test case with additional options specified by one or more
modelname
,modelhandle
,modelpath
] = loadSystem(___,Name,Value
)Name,Value
pairs.
Input Arguments
Examples
Version History
Introduced in R2024b
See Also
sltest.TestCase
(Simulink Test)
Topics
- Test Models Using MATLAB-Based Simulink Tests (Simulink Test)
- Using MATLAB-Based Simulink Tests in the Test Manager (Simulink Test)
- Collect Coverage Using MATLAB-Based Simulink Tests (Simulink Test)