MATLAB Function Reference Previous page   Next Page
cputime

Return elapsed CPU time

Syntax

Description

cputime returns the total CPU time (in seconds) used by MATLAB from the time it was started. This number can overflow the internal representation and wrap around.

Examples

The following code returns the CPU time used to run surf(peaks(40)).

See Also

clock, etime, tic, toc


Previous page  cplxpair cross Next page

© 1994-2005 The MathWorks, Inc.