Azzera filtri
Azzera filtri

Count time while a program is running

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Image Analyst
Image Analyst il 14 Dic 2012
Modificato: Image Analyst il 14 Dic 2012
Try tic and toc in your code,
tic;
% Some code....
toc;
or else try the profiling code on the pulldown menu.

Più risposte (0)

Categorie

Scopri di più su Debugging and Analysis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by