MATLAB Function Reference
  Go to function:
    Search    Help Desk 
cputime    Examples   See Also

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

For example

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

See Also

clock       Current time as a date vector

etime       Elapsed time

tic, toc    Stopwatch timer



[ Previous | Help Desk | Next ]