I have a Simulink model containing several Matlab Functions. When I use the Profiler (enabled through Analysis> Performance Tools > Show profiler report) to analyse the execution time of the model, the profiler always gave a total recorded time of 530~550 seconds. However, the execution time recorded by a stopwatch was definitely below 100 seconds. I cannot understand why there is so much discrepancy between the time given by the Profiler and that by a stopwatch. I am not sure whether this is related to the Matlab Functions in my model.
Any comment is greatly appreciated.