CLOCK

Purpose:

Returns the current execution clock in seconds.

Syntax:

CLOCK

Returns:

A real indicating the total number of seconds since invocation.

Example:

a=clock();fft(w1);b=clock();

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

 

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

Remarks:

See TIC and TOC to start an interval timer and automatically compute the elapsed time.

See Also:

GETTIME

TIC

TOC