I need to run simulink and set a timeout and a penalty on time out. Hence, I need a block to give me the CPU time (real world time).
The clock block gives the simulation time:
The CAN timeout detection is discrete and it does not work with my continuous solver.
The Matlab function blocks make simulation so slow.
Is there any alternative?


