Time Computation
Show older comments
How to calculate compilation time for a code in seconds? tic-toc command gives time in machine cycles. Is there any way?
Answers (2)
the cyclist
on 23 Jun 2012
0 votes
Would using the profiler help?
Walter Roberson
on 23 Jun 2012
toc stops a stopwatch timer started by the tic function, and displays the time elapsed in seconds.
So tic/toc already uses seconds, not machine cycles.
Categories
Find more on Clocks and Timers 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!