I wonder Is "TIC_TOC" is enough for measuring the execution time of the algorithm in Matlab ?!!! .. I Think I couldn't understand how this function works !!
More convinient way to do that is to use the "profile" function. You should write in Matlab command window "profile on" then start your algorithm and after it's finish you should write "profile off". After that you call "profile viewer" and there you'll see the overall time for algorithm execution and time for execution of all internal functions and operations.