1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>TOC Stop Stopwatch Timer
</TITLE>
</HEAD>
<BODY>
<H2>TOC Stop Stopwatch Timer
</H2>
<P>
Section: <A HREF=sec_freemat.html> FreeMat Functions </A>
<H3>Usage</H3>
Stop the stopwatch timer, which can be used to time tasks in FreeMat.
The <code>toc</code> function takes no arguments, and returns no outputs. You must use
<code>toc</code> to get the elapsed time. The usage is
<PRE>
toc
</PRE>
<P>
<H3>Example</H3>
Here is an example of timing the solution of a large matrix equation.
<PRE>
--> A = rand(100);
--> b = rand(100,1);
--> tic; c = A\b; toc
ans =
0.0220
</PRE>
<P>
</BODY>
</HTML>
|