I am measuring the time required to run a genetic algorithm for a certain optimization task. I'm not interested in measuring how the time varies with the size of the input, I only need the time required for a certain run to converge. Will pausing the script and entering debug mode would also pause the stopwatch (tic…toc); in other words, will the value returned by toc include the time spent in debugging mode? If so, is there any workaround to exclude debug time from the stopwatch?
MATLAB: Tic toc and debug mode
debugginggenetic algorithmperformance
Best Answer