Count time while a program is running

조회 수: 1 (최근 30일)
André Pacheco
André Pacheco 2012년 12월 14일
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.

채택된 답변

Image Analyst
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.
  댓글 수: 1
André Pacheco
André Pacheco 2012년 12월 14일
Thanks! Works great for my problem ;)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by