Matlab C++ S-functions that can be used to: synchronize simulink with the system clock, thus obtaining a soft-real-time