34#ifndef I_BESStopWatch_h
35#define I_BESStopWatch_h 1
38#include "sys/resource.h"
45#define TIMING_LOG_KEY "timing"
46#define MISSING_LOG_PARAM ""
58 std::string d_timer_name;
60 std::string d_log_name;
64 struct timeval d_start_usage;
65 struct timeval d_stop_usage;
66 struct timeval d_result ;
69 unsigned long int get_elapsed_us();
70 unsigned long int get_start_us();
71 unsigned long int get_stop_us();
72 bool get_time_of_day(
struct timeval &time_val);
81 d_req_id(MISSING_LOG_PARAM),
82 d_log_name(TIMING_LOG_KEY),
93 BESStopWatch(std::string logName) : d_timer_name(MISSING_LOG_PARAM),
94 d_req_id(MISSING_LOG_PARAM),
116 virtual bool start(std::string name) ;
126 virtual bool start(std::string name, std::string reqID) ;
128 virtual void dump( std::ostream &strm )
const ;
top level BES object to house generic methods
BESStopWatch(std::string logName)
virtual bool start(std::string name)
virtual void dump(std::ostream &strm) const
dumps information about this object