|MATLAB Function Reference|
Elapsed CPU time
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.
The following code returns the CPU time used to run