Count time while a program is running

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.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 14 Dez. 2012
Bearbeitet: Image Analyst am 14 Dez. 2012

0 Stimmen

Try tic and toc in your code,
tic;
% Some code....
toc;
or else try the profiling code on the pulldown menu.

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by