test_clock.cpp

Description of class 'Clock'

Aim: To provide functions to start and stop a timer. Is useful to get performance of algorithms.

The following code snippet demonstrates how to use Clock

  #include <DGtal/utils/Clock.h>

   Clock c;
   long duration;

   c.startClock();
   ...
   //do something
   ...
   duration = c.stopClock();

   std::cout<< "Duration in ms. : "<< duration <<endl;
Generated on Fri Jul 9 17:28:08 2010 for DGtal by  doxygen 1.6.3