TOC

Purpose:

Returns the number of seconds since the interval timer started.

Syntax:

TOC

Returns:

A real, the number of seconds since the last TIC command.

Example:

tic;fft(w1);b=toc;

sprintf("FFT execution time %g seconds", b);

 

prints the approximate time required to calculate and display the FFT of W1.

Example:

W1: gnorm(1024*32, 1)

W2: tic;fft(w1);label(strnum(toc))

 

W2 is labeled with the approximate time to calculate the FFT of W1.

Remarks:

TOC returns the elapsed time since the last TIC command to a precision of approximately 0.01 seconds. The interval timer is not reset.

See Also:

CLOCK

GETTIME

TIC