33 #ifndef I_BESStopWatch_h
34 #define I_BESStopWatch_h 1
37 #include "sys/resource.h"
47 struct rusage _start_usage ;
48 struct rusage _stop_usage ;
49 struct timeval _result ;
52 bool timeval_subtract() ;
56 virtual bool start() ;
60 if( _stopped )
return _result.tv_sec ;
65 if( _stopped )
return _result.tv_usec ;
69 virtual void dump( ostream &strm )
const ;
72 #endif // I_BESStopWatch_h
virtual int microseconds()
Base object for bes objects.
virtual void dump(ostream &strm) const
dumps information about this object