Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

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


Constructor & Destructor Documentation

XrdMonTimer::XrdMonTimer  )  [inline]
 


Member Function Documentation

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

double XrdMonTimer::calcElapsed  )  [inline, private]
 

Calculates elapsed time (from last "start" till now) and adds it to the current total elapsed time. Return elapsed time on success (or -1)

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

double XrdMonTimer::getElapsed  )  const [inline]
 

Returns total elapsed time (sum of deltas between all "starts" and "stops"). If counter is currently started and not stopped that interval will not be included.

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

void XrdMonTimer::printAll  )  const
 

void XrdMonTimer::printElapsed const char *  str  ) 
 

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

void XrdMonTimer::reset  )  [inline]
 

void XrdMonTimer::resetTBeg  )  [inline, private]
 

void XrdMonTimer::resetTElapsed  )  [inline, private]
 

int XrdMonTimer::start  )  [inline]
 

Starts the timer. Returns 0 on success.

double XrdMonTimer::stop  )  [inline]
 

Stops the timer. Returns total elapsed time (sum of all deltas between "starts" and "stops"), or -1 on error.

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


Member Data Documentation

double XrdMonTimer::_elapsed [private]
 

struct timeval XrdMonTimer::_tbeg [private]
 


The documentation for this class was generated from the following files:
Generated on Sun Nov 6 13:42:15 2011 for xrootd by  doxygen 1.3.9.1