MATLAB: Matlab program timer program timer hello everyone. i want to know if its possible to output the time it took for the program to end successfully? thanks in advance. cheers Best Answer tic%program goes heretoc %elapsed time Related SolutionsMATLAB: Program timer The timer function is exactly what you want. If it seems too complicated, start at the beginning of the MATLAB documentation and by the time you get to timers, it will make sense. MATLAB: Time dependent programs iniTime = clock;limit = 12 * 3600; % Seconds while etime(clock, iniTime) < limit % do the processing hereend Related QuestionHow to calculate the execution time of programProgram runtime question
Best Answer