XrdMonTimer Class Reference

#include <XrdMonTimer.hh>

List of all members.

Public Member Functions

 XrdMonTimer ()
void reset ()
int start ()
double stop ()
double getElapsed () const
void printElapsed (const char *str)
void printAll () const

Private Member Functions

void resetTBeg ()
void resetTElapsed ()
double calcElapsed ()
int timerOn () const
int isOn (const struct timeval &t) const
double calcDif (const struct timeval &start, const struct timeval &stop) const
void printOne (const timeval &t, const char *prefix=0) const
double convert2Double (const timeval &t) const

Private Attributes

timeval _tbeg
double _elapsed


Detailed Description

Definition at line 18 of file XrdMonTimer.hh.


Constructor & Destructor Documentation

XrdMonTimer::XrdMonTimer (  )  [inline]

Definition at line 20 of file XrdMonTimer.hh.

References reset().


Member Function Documentation

void XrdMonTimer::reset (  )  [inline]

Referenced by XrdMonTimer().

int XrdMonTimer::start (  )  [inline]

double XrdMonTimer::stop (  )  [inline]

double XrdMonTimer::getElapsed (  )  const [inline]

void XrdMonTimer::printElapsed ( const char *  str  ) 

Definition at line 43 of file XrdMonTimer.cc.

References calcElapsed().

void XrdMonTimer::printAll (  )  const

Definition at line 19 of file XrdMonTimer.cc.

References _elapsed, _tbeg, and printOne().

void XrdMonTimer::resetTBeg (  )  [inline, private]

void XrdMonTimer::resetTElapsed (  )  [inline, private]

double XrdMonTimer::calcElapsed (  )  [inline, private]

Referenced by printElapsed().

int XrdMonTimer::timerOn (  )  const [inline, private]

int XrdMonTimer::isOn ( const struct timeval &  t  )  const [inline, private]

double XrdMonTimer::calcDif ( const struct timeval &  start,
const struct timeval &  stop 
) const [inline, private]

void XrdMonTimer::printOne ( const timeval &  t,
const char *  prefix = 0 
) const [private]

Definition at line 28 of file XrdMonTimer.cc.

References buf, convert2Double(), and sprintf().

Referenced by printAll().

double XrdMonTimer::convert2Double ( const timeval &  t  )  const [private]

Referenced by printOne().


Member Data Documentation

struct timeval XrdMonTimer::_tbeg [private]

Definition at line 52 of file XrdMonTimer.hh.

Referenced by printAll().

double XrdMonTimer::_elapsed [private]

Definition at line 53 of file XrdMonTimer.hh.

Referenced by printAll().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1