00001 /* 00002 * $Id: Chronometer.h,v 1.2 2003/07/01 06:12:26 mindstorm2600 Exp $ 00003 */ 00004 #ifndef __CLAW_CRONOMETER_H__ 00005 #define __CLAW_CRONOMETER_H__ 00006 00007 #include<Time.h> 00008 #include<sys/time.h> 00009 00010 namespace clawsoft{ 00016 class Chronometer:protected Time{ 00017 protected: 00018 struct timeval _startedOn; 00019 struct timeval _finishedOn; 00020 bool _counting; 00021 public: 00023 Chronometer(); 00026 void start(); 00028 void stop(); 00031 void resume(); 00033 void reset(); 00035 long int elapsedHour(); 00037 long int elapsedMinute(); 00039 long int elapsedSecond(); 00041 long int elapsedMillisecond(); 00043 long int elapsedMicrosecond(); 00044 }; 00045 }; 00046 00047 #endif
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: