Hi Ajay,
You can initialize a timer function supported by TI 28335 processor in the model initialization callback of Simulink, then the exit callback should get the status of timer count. This would tell you the time taken to execute code on hardware.
Regards, Peeyush Pashine Engineer in MathWorks