Standalone charts in matlab define absolute time temporal logic in terms of wall clock time which is limited to 1 millisecond precision.
Matlab wall clock time.
How can i get the wall clock time during my.
Modelobj sbiomodel cell.
Create a model object named cell and save it in a variable named modelobj.
The cpu time for the pause function is typically small but the wall clock time accounts for the actual time that matlab execution is paused.
To return a datetime scalar representing the current date and time type.
The timing for absolute time temporal logic operators depends on the type of stateflow chart.
Therefore the wall clock time might be longer.
Learn more about wall clock time real time simulink simevents matlab simulink simevents statistics and machine learning toolbox stateflow.
Create a model object named cell and save it in a variable named modelobj.
Modelobj sbiomodel cell.
To time the duration of an event use the timeit or tic and toc functions instead of clock and etime.
Set the maximum wall clock time in seconds that triggers a simulation to stop.
Configsetobj getconfigset modelobj.
Retrieve the configuration set from modelobj and save it in a variable named configsetobj.
If your function uses four processing cores equally the cpu time could be approximately four times higher than the wall clock time.