Count time while a program is running
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, i would like to know if there is any function that counts the time that a program spends while he is running. I'm doing some exercises and it would be useful for me to check how much time the program spends.
댓글 수: 0
채택된 답변
Image Analyst
2012년 12월 14일
편집: Image Analyst
2012년 12월 14일
Try tic and toc in your code,
tic;
% Some code....
toc;
or else try the profiling code on the pulldown menu.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!