00001 // 00002 // C++ Interface: stopwatch 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2006 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 #ifndef STOPWATCH_H 00013 #define STOPWATCH_H 00014 00015 #include <time.h> 00016 00017 namespace srchilite { 00018 00022 class StopWatch{ 00023 clock_t start; 00024 public: 00029 StopWatch() : start(clock()) {} 00030 00035 ~StopWatch(); 00036 00037 }; 00038 00039 } 00040 00041 #endif