Count time while a program is running
1 view (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Image Analyst
on 14 Dec 2012
Edited: Image Analyst
on 14 Dec 2012
Try tic and toc in your code,
tic;
% Some code....
toc;
or else try the profiling code on the pulldown menu.
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!