Count time while a program is running

1 vue (au cours des 30 derniers jours)
André Pacheco
André Pacheco le 14 Déc 2012
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.

Réponse acceptée

Image Analyst
Image Analyst le 14 Déc 2012
Modifié(e) : Image Analyst le 14 Déc 2012
Try tic and toc in your code,
tic;
% Some code....
toc;
or else try the profiling code on the pulldown menu.
  1 commentaire
André Pacheco
André Pacheco le 14 Déc 2012
Thanks! Works great for my problem ;)

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by