#include <XrdMonTimer.hh>
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 |
Definition at line 18 of file XrdMonTimer.hh.
XrdMonTimer::XrdMonTimer | ( | ) | [inline] |
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 | ) |
void XrdMonTimer::printAll | ( | ) | const |
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().
struct timeval XrdMonTimer::_tbeg [private] |
double XrdMonTimer::_elapsed [private] |