# etime

## Purpose

Elapsed time.

## Synopsis

    e = etime(t2,t1)

## Description

`etime(t2,t1)` returns the time in seconds between `clock` output vectors `t1` and `t2`.

## Examples

Calculate how long a 2048-point real FFT takes.

    x = rand(2048,1);
    t = clock; fft(x); etime(clock,t)

    ans =
        0.4167

## Limitations

`etime` fails across month and year boundaries. It can be fixed with some effort; see the `etime` M-file.

## See Also

    clock, cputime, date, tic, toc

(c) Copyright 1994 by The MathWorks, Inc.