Watch this Author's files
This block does what it says it does, but it results in a monumental decrease in simulation speed due to the many calls to Matlab's toc function. I don't know if there is a way around this.
Contact us at files@mathworks.com