MATLAB Function Reference | Search  Help Desk |
etime | Examples See Also |
e = etime(t2,t1)
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
:
T = [Year Month Day Hour Minute Second]Calculate how long a 2048-point real FFT takes.
x = rand(2048,1); t = clock; fft(x); etime(clock,t) ans = 0.4167As 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.
clock
Current time as a date vector
cputime
Elapsed CPU time