next up previous
Next: Variable name precedence Up: C++/C Previous: Templates

Run-time calculations

For real-time:
t0=clock;  
%code 
etime(clock,t0)/60

For CPU time:
t0=cputime; 
%code 
cputime-t0

Thanks to Greg DiRienzo for this tip.

Keywords: Matlab, clock, run-time, CPU time

Last modified 11/19/05.



Chris Paciorek 2012-01-21