How to record excution time of a subfunction during runtime?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a function, that repeatedly calls a specific subfunction and I need to record the execution time of every call. How can I do that with profile? The help page for profile didn't go into how the time is recorded, if it is.
Can I just time the call from the outside or do I have to change the subfunction to record it's own runtime and return with all the other values?
댓글 수: 0
채택된 답변
Mischa Kim
2014년 3월 31일
편집: Mischa Kim
2014년 3월 31일
tic
[your subroutine call or commands]
toc
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!