CMS 3D CMS Logo

Public Member Functions | Public Attributes

MyWatcher Class Reference

#include <MyWatcher.h>

List of all members.

Public Member Functions

std::string continu ()
std::string lap ()
 MyWatcher (const std::string n="")
std::string reset ()
std::string start (bool r=true)
std::string stop ()
 ~MyWatcher ()

Public Attributes

std::string name
double total

Detailed Description

Definition at line 8 of file MyWatcher.h.


Constructor & Destructor Documentation

MyWatcher::MyWatcher ( const std::string  n = "") [inline]

Definition at line 10 of file MyWatcher.h.

:name(n),total(0) {}
MyWatcher::~MyWatcher ( ) [inline]

Definition at line 11 of file MyWatcher.h.

{}

Member Function Documentation

std::string MyWatcher::continu ( ) [inline]

Definition at line 14 of file MyWatcher.h.

{Continue(); return " [Continue]";}
std::string MyWatcher::lap ( ) [inline]

Definition at line 17 of file MyWatcher.h.

References name, connectstrParser::o, csvReporter::r, and total.

Referenced by EcalRawToRecHitFacility::beginRun(), EcalRawToRecHitFacility::produce(), EcalRawToRecHitRoI::produce(), EcalRawToRecHitProducer::produce(), ESUnpackerWorker::work(), and EcalUnpackerWorker::work().

                  {
    std::stringstream o;
    double r=RealTime();
    total+=r;
    o<<"\n   "<<r<<" total:"<<total<<" ["<<name<<"]";
    Start();
    return o.str();}
std::string MyWatcher::reset ( void  ) [inline]

Definition at line 15 of file MyWatcher.h.

{Reset(); return " [Reset]";}
std::string MyWatcher::start ( bool  r = true) [inline]

Definition at line 13 of file MyWatcher.h.

References csvReporter::r.

{Start(r); return " [Start]";}
std::string MyWatcher::stop ( ) [inline]

Definition at line 16 of file MyWatcher.h.

{Stop(); return " [Stop]";}

Member Data Documentation

std::string MyWatcher::name

Definition at line 24 of file MyWatcher.h.

Referenced by lap().

Definition at line 25 of file MyWatcher.h.

Referenced by lap().