Scientific Computing & Visualization
Help Contact
About Accounts Computation Visualization Documentation Services

Introduction to MATLAB

How to time your work

  >> tic  % starts a stopwatch timer  
  >> % your MATLAB operations ...    
  >> toc % reads a stopwatch timer  

The above sequence prints the elapsed (wallclock) time, in seconds, for processing the operations between tic and toc. There are other timers: etime, cputime, clock.

For more details:

  >> help tic    
  >> help toc  

unk

unk unk unk

Documentation
Boston University
Boston University
 
OIT | CCS | July 7, 2009  
Scientific Computing & Visualization Boston University home page Boston University home page