e = etime(t2,t1)
etime(t2,t1) returns the time in seconds between clock output vectors t1 and t2.
x = rand(2048,1);t = clock; fft(x); etime(clock,t)ans =0.4167
etime fails across month and year boundaries. It can be fixed with some effort; see the etime M-file.
clock,cputime,date,tic,toc
(c) Copyright 1994 by The MathWorks, Inc.