next up previous contents
Next: TOC Start Stopwatch Timer Up: FreeMat Functions Previous: PCODE Convert a Script   Contents

Subsections

TIC Start Stopwatch Timer

Usage

Starts the stopwatch timer, which can be used to time tasks in FreeMat. The tic takes no arguments, and returns no outputs. You must use toc to get the elapsed time. The usage is

  tic

Example

Here is an example of timing the solution of a large matrix equation.

--> A = rand(100);
--> b = rand(100,1);
--> tic; c = A\b; toc
ans = 
  <double>  - size: [1 1]
    0.00715600000000000



Samit K. Basu 2005-03-16