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 件)

Walter Roberson
Walter Roberson 2012 年 6 月 23 日

0 投票

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.

カテゴリ

タグ

質問済み:

2012 年 6 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by