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 Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by