etime
Time elapsed between date vectors
Syntax
e = etime(t2,t1)
Description
Examples
Input Arguments
Tips
To time the duration of an event, use the
timeit
ortic
andtoc
functions instead ofclock
andetime
. Theclock
function is based on the system time, which can be adjusted periodically by the operating system, and thus might not be reliable in time comparison operations.
Algorithms
etime
does not account for the following:
Leap seconds.
Daylight savings time adjustments.
Differences in time zones.
Introduced before R2006a
Was this topic helpful?