MATLAB Function Reference Previous page   Next Page
etime

Return time elapsed between date vectors

Syntax

Description

e = etime(t2, t1) returns the time in seconds between vectors t1 and t2. The two vectors must be six elements long, in the format returned by clock:

Examples

Calculate how long a 2048-point real FFT takes.

Limitations

As currently implemented, the etime function fails across month and year boundaries. Since etime is an M-file, you can modify the code to work across these boundaries if needed.

See Also

clock, cputime, tic, toc


Previous page  errordlg etree Next page

© 1994-2005 The MathWorks, Inc.