Time Computation

Asked by Swapnil T on 23 Jun 2012
Latest activity Answered by Walter Roberson on 23 Jun 2012

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

0 Comments

Swapnil T

Tags

Products

No products are associated with this question.

2 Answers

Answer by the cyclist on 23 Jun 2012

0 Comments

the cyclist
Answer by Walter Roberson on 23 Jun 2012

http://www.mathworks.com/help/techdoc/ref/toc.html

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.

0 Comments

Walter Roberson

Contact us