Generated on Tue Dec 16 12:49:16 2008 for BIU-2.2.0 by doxygen 1.5.1

src/biu/Timer.hh

Go to the documentation of this file.
00001 #ifndef TIMER_HH_
00002 #define TIMER_HH_
00003 
00004 namespace biu
00005 {
00006 
00012     class Timer {
00013         private:
00015             clock_t t0;
00016         public:
00018             void start(void){
00019                 t0 = clock();
00020             }
00023             double stop(void) {
00024                 return (static_cast<double>(clock()-t0) / CLOCKS_PER_SEC) * 1000.0;
00025             }
00026     };
00027     
00028 } // namespace biu
00029 #endif /*TIMER_HH_*/