Skip to content

etime

time · scripts/time/etime.m

: secs = etime (t1, t0)

Seconds elapsed from date vector t0 to date vector t1 ([y m d h mi s]); positive when t1 is the later one.

Rows of m-by-6 matrices give an m-by-1 result, and a single row is compared against every row of the other argument. Date vectors are normalised like datenum; no time zone adjustments are made.