xrootd
|
#include <XrdSysTimer.hh>
Public Member Functions | |
struct timeval * | Delta_Time (struct timeval &tbeg) |
int | TimeLE (time_t tsec) |
unsigned long | Report (double &) |
unsigned long | Report (unsigned long &) |
unsigned long | Report (unsigned long long &) |
unsigned long | Report (struct timeval &) |
void | Reset () |
time_t | Seconds () |
void | Set (struct timeval &tod) |
XrdSysTimer () | |
Static Public Member Functions | |
static time_t | Midnight (time_t tnow=0) |
static void | Snooze (int seconds) |
static char * | s2hms (int sec, char *buff, int blen) |
static void | Wait (int milliseconds) |
Private Member Functions | |
unsigned long | Report () |
Private Attributes | |
struct timeval | StopWatch |
struct timeval | LastReport |
XrdSysTimer::XrdSysTimer | ( | ) | [inline] |
References Reset().
struct timeval * XrdSysTimer::Delta_Time | ( | struct timeval & | tbeg | ) | [read] |
References gettimeofday(), and LastReport.
time_t XrdSysTimer::Midnight | ( | time_t | tnow = 0 | ) | [static] |
References localtime_r.
Referenced by XrdSysLogger::Bind(), getXDate(), XrdCns::MLogWorker(), XrdLogWorker(), and XrdLogWorker::XrdLogWorker().
unsigned long XrdSysTimer::Report | ( | ) | [private] |
References gettimeofday(), LastReport, and StopWatch.
Referenced by Report().
unsigned long XrdSysTimer::Report | ( | double & | Total_Time | ) |
References LastReport, and Report().
Referenced by XrdCmsBaseFS::Bypass(), and XrdStats::Stats().
unsigned long XrdSysTimer::Report | ( | unsigned long & | Total_Time | ) |
References LastReport, and Report().
unsigned long XrdSysTimer::Report | ( | unsigned long long & | Total_Time | ) |
References LastReport, and Report().
unsigned long XrdSysTimer::Report | ( | struct timeval & | Total_Time | ) |
References LastReport, and Report().
void XrdSysTimer::Reset | ( | ) | [inline] |
References gettimeofday(), and StopWatch.
Referenced by XrdCmsBaseFS::Bypass(), XrdStats::Stats(), and XrdSysTimer().
char * XrdSysTimer::s2hms | ( | int | sec, |
char * | buff, | ||
int | blen | ||
) | [static] |
References snprintf.
Referenced by XrdXrootdProtocol::Recycle().
time_t XrdSysTimer::Seconds | ( | ) | [inline] |
References StopWatch.
void XrdSysTimer::Set | ( | struct timeval & | tod | ) | [inline] |
References StopWatch.
void XrdSysTimer::Snooze | ( | int | seconds | ) | [static] |
Referenced by XrdCnsLogClient::admConnect(), XrdCns::CnsInt(), XrdXrootdProtocol::do_Auth(), XrdCmsClientMan::Hookup(), main(), XrdFrmMigrate::Migrate(), XrdCmsCluster::MonPerf(), XrdCmsCluster::MonRefs(), XrdCmsProtocol::Pander(), XrdFrmXfrDaemon::Start(), XrdCmsClientMan::Start(), XrdFrmXfrQueue::StopMon(), XrdCmsCache::TickTock(), and XrdLogWorker().
int XrdSysTimer::TimeLE | ( | time_t | tsec | ) | [inline] |
References StopWatch.
void XrdSysTimer::Wait | ( | int | milliseconds | ) | [static] |
Referenced by XrdCmsConfig::DoIt(), XrdOfsEvr::flushEvents(), XrdCmsFinderRMT::Forward(), XrdCmsFinderTRG::Hookup(), XrdCns::MLogWorker(), XrdCmsBaseFS::Pacer(), XrdCmsFinderRMT::Prepare(), XrdBuffManager::Reshape(), XrdNetCmsNotify::Send(), XrdCmsFinderTRG::Start(), XrdCmsRRQ::TimeOut(), and XrdOfsHandle::WaitLock().
struct timeval XrdSysTimer::LastReport [private] |
Referenced by Delta_Time(), and Report().
struct timeval XrdSysTimer::StopWatch [private] |