IBR-DTNSuite
0.8
|
#include <TimeMeasurement.h>
Public Member Functions | |
TimeMeasurement () | |
virtual | ~TimeMeasurement () |
void | start () |
void | stop () |
u_int64_t | getNanoseconds () const |
float | getMicroseconds () const |
float | getMilliseconds () const |
float | getSeconds () const |
Static Public Member Functions | |
static std::ostream & | format (std::ostream &stream, const float value) |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const TimeMeasurement &measurement) |
Definition at line 29 of file TimeMeasurement.h.
Definition at line 24 of file TimeMeasurement.cpp.
References start(), and stop().
ibrcommon::TimeMeasurement::~TimeMeasurement | ( | ) | [virtual] |
Definition at line 29 of file TimeMeasurement.cpp.
std::ostream & ibrcommon::TimeMeasurement::format | ( | std::ostream & | stream, |
const float | value | ||
) | [static] |
Definition at line 94 of file TimeMeasurement.cpp.
Referenced by ibrcommon::operator<<(), and print_summary().
float ibrcommon::TimeMeasurement::getMicroseconds | ( | ) | const |
Definition at line 78 of file TimeMeasurement.cpp.
References getNanoseconds().
Referenced by ibrcommon::__nonlinux_select(), dtn::data::AgeBlock::getMicroseconds(), and dtn::data::AgeBlock::getSeconds().
float ibrcommon::TimeMeasurement::getMilliseconds | ( | ) | const |
Definition at line 54 of file TimeMeasurement.cpp.
References getNanoseconds().
Referenced by dtn::net::IPNDAgent::componentRun(), getSeconds(), and main().
u_int64_t ibrcommon::TimeMeasurement::getNanoseconds | ( | ) | const |
Definition at line 65 of file TimeMeasurement.cpp.
Referenced by getMicroseconds(), and getMilliseconds().
float ibrcommon::TimeMeasurement::getSeconds | ( | ) | const |
Definition at line 89 of file TimeMeasurement.cpp.
References getMilliseconds().
Referenced by BundleStreamBuf::__underflow(), dtn::net::operator<<(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::start | ( | ) |
Definition at line 33 of file TimeMeasurement.cpp.
Referenced by ibrcommon::__nonlinux_select(), BundleStreamBuf::__underflow(), dtn::data::AgeBlock::AgeBlock(), dtn::routing::SummaryVector::commit(), dtn::net::IPNDAgent::componentRun(), dtn::data::AgeBlock::deserialize(), main(), dtn::net::operator<<(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::stop | ( | ) |
Definition at line 44 of file TimeMeasurement.cpp.
Referenced by ibrcommon::__nonlinux_select(), BundleStreamBuf::__underflow(), dtn::routing::SummaryVector::commit(), dtn::net::IPNDAgent::componentRun(), dtn::data::AgeBlock::getMicroseconds(), dtn::data::AgeBlock::getSeconds(), main(), dtn::net::operator<<(), print_summary(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
std::ostream& operator<< | ( | std::ostream & | stream, |
const TimeMeasurement & | measurement | ||
) | [friend] |
Definition at line 106 of file TimeMeasurement.cpp.