Matlab stop time or running time
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi, I am running a model that takes hours and i am wondering how long does it take for further run. I can see start time on command history but is there anywhere or any code that shows when program ended running. or how could i add a code that shows total time of execution?
댓글 수: 0
답변 (2개)
Jeremy Wurbs
2013년 11월 30일
You can use the tic and toc commands:
tic
pause(1.5) % put your code here
time = toc
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Performance and Memory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!