next up previous contents
Next: HELP Help Up: FreeMat Functions Previous: TIC Start Stopwatch Timer   Contents

Subsections

TOC 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.00714200000000000



Samit K. Basu 2005-03-16