Navigation

Operators and Keywords

Function List:

C++ API

: etime (t2, t1)

Return the difference in seconds between two time values returned from clock (t2 - t1).

For example:

t0 = clock ();
# many computations later…
elapsed_time = etime (clock (), t0);

will set the variable elapsed_time to the number of seconds since the variable t0 was set.

See also: tic, toc, clock, cputime, addtodate.

Package: octave