IBR-DTNSuite
0.10
|
#include <TimeMeasurement.h>
Public Member Functions | |
TimeMeasurement () | |
virtual | ~TimeMeasurement () |
void | start () |
void | stop () |
double | getMicroseconds () const |
double | getMilliseconds () const |
void | getTime (struct timespec &diff) const |
time_t | getSeconds () const |
Static Public Member Functions | |
static std::ostream & | format (std::ostream &stream, const double value) |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const TimeMeasurement &measurement) |
Definition at line 32 of file TimeMeasurement.h.
ibrcommon::TimeMeasurement::TimeMeasurement | ( | ) |
Definition at line 40 of file TimeMeasurement.cpp.
References start(), and stop().
|
virtual |
Definition at line 45 of file TimeMeasurement.cpp.
|
static |
Definition at line 88 of file TimeMeasurement.cpp.
Referenced by ibrcommon::operator<<(), and print_summary().
double ibrcommon::TimeMeasurement::getMicroseconds | ( | ) | const |
Definition at line 72 of file TimeMeasurement.cpp.
References getTime().
Referenced by ibrcommon::__compat_select(), and dtn::data::AgeBlock::getMicroseconds().
double ibrcommon::TimeMeasurement::getMilliseconds | ( | ) | const |
Definition at line 61 of file TimeMeasurement.cpp.
References getTime().
Referenced by dtn::net::IPNDAgent::componentRun(), and main().
time_t ibrcommon::TimeMeasurement::getSeconds | ( | ) | const |
Definition at line 83 of file TimeMeasurement.cpp.
Referenced by BundleStreamBuf::__underflow(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::getTime | ( | struct timespec & | diff | ) | const |
Definition at line 133 of file TimeMeasurement.cpp.
Referenced by getMicroseconds(), getMilliseconds(), and ibrcommon::operator<<().
void ibrcommon::TimeMeasurement::start | ( | ) |
Definition at line 49 of file TimeMeasurement.cpp.
Referenced by ibrcommon::__compat_select(), BundleStreamBuf::__underflow(), dtn::data::AgeBlock::AgeBlock(), dtn::net::IPNDAgent::componentRun(), dtn::data::AgeBlock::deserialize(), main(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::stop | ( | ) |
Definition at line 55 of file TimeMeasurement.cpp.
Referenced by ibrcommon::__compat_select(), BundleStreamBuf::__underflow(), dtn::net::IPNDAgent::componentRun(), dtn::data::AgeBlock::getMicroseconds(), main(), print_summary(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
|
friend |
Definition at line 100 of file TimeMeasurement.cpp.