Time Computation

How to calculate compilation time for a code in seconds? tic-toc command gives time in machine cycles. Is there any way?

回答(2 个)

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.

类别

帮助中心File Exchange 中查找有关 Clocks and Timers 的更多信息

标签

提问:

2012-6-23

Community Treasure Hunt

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

Start Hunting!

Translated by