Count time while a program is running
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!