IBR-DTNSuite
0.12
|
#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 41 of file TimeMeasurement.h.
ibrcommon::TimeMeasurement::TimeMeasurement | ( | ) |
Definition at line 32 of file TimeMeasurement.cpp.
References start(), and stop().
|
virtual |
Definition at line 37 of file TimeMeasurement.cpp.
|
static |
Definition at line 80 of file TimeMeasurement.cpp.
Referenced by ibrcommon::operator<<(), and print_summary().
double ibrcommon::TimeMeasurement::getMicroseconds | ( | ) | const |
Definition at line 64 of file TimeMeasurement.cpp.
References getTime().
Referenced by dtn::data::AgeBlock::getMicroseconds().
double ibrcommon::TimeMeasurement::getMilliseconds | ( | ) | const |
Definition at line 53 of file TimeMeasurement.cpp.
References getTime().
Referenced by main().
time_t ibrcommon::TimeMeasurement::getSeconds | ( | ) | const |
Definition at line 75 of file TimeMeasurement.cpp.
Referenced by BundleStreamBuf::__underflow(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::getTime | ( | struct timespec & | diff) | const |
Definition at line 125 of file TimeMeasurement.cpp.
References ibrcommon::MonotonicClock::diff().
Referenced by ibrcommon::__compat_select(), getMicroseconds(), getMilliseconds(), and ibrcommon::operator<<().
void ibrcommon::TimeMeasurement::start | ( | ) |
Definition at line 41 of file TimeMeasurement.cpp.
References ibrcommon::MonotonicClock::gettime().
Referenced by ibrcommon::__compat_select(), BundleStreamBuf::__underflow(), dtn::data::AgeBlock::AgeBlock(), dtn::data::AgeBlock::deserialize(), main(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
void ibrcommon::TimeMeasurement::stop | ( | ) |
Definition at line 47 of file TimeMeasurement.cpp.
References ibrcommon::MonotonicClock::gettime().
Referenced by ibrcommon::__compat_select(), BundleStreamBuf::__underflow(), dtn::data::AgeBlock::getMicroseconds(), main(), print_summary(), TimeMeasurement(), and dtn::api::BundleStreamBuf::underflow().
|
friend |
Definition at line 92 of file TimeMeasurement.cpp.