IBR-DTNSuite
0.12
|
#include <MonotonicClock.h>
Public Member Functions | |
MonotonicClock () | |
virtual | ~MonotonicClock () |
void | get (struct timeval &tv) const |
void | get (struct timespec &ts) const |
time_t | getSeconds () const |
Static Public Member Functions | |
static void | gettime (struct timeval &tv) |
static void | gettime (struct timespec &ts) |
static void | diff (const struct timespec &start, const struct timespec &end, struct timespec &diff) |
Definition at line 26 of file MonotonicClock.h.
ibrcommon::MonotonicClock::MonotonicClock | ( | ) |
Definition at line 24 of file MonotonicClock.cpp.
References gettime().
|
virtual |
Definition at line 29 of file MonotonicClock.cpp.
|
static |
Definition at line 136 of file MonotonicClock.cpp.
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), get(), ibrcommon::TimeMeasurement::getTime(), and dtn::daemon::DTNTPWorker::raiseEvent().
void ibrcommon::MonotonicClock::get | ( | struct timeval & | tv) | const |
Definition at line 33 of file MonotonicClock.cpp.
void ibrcommon::MonotonicClock::get | ( | struct timespec & | ts) | const |
Definition at line 42 of file MonotonicClock.cpp.
References diff(), and gettime().
time_t ibrcommon::MonotonicClock::getSeconds | ( | ) | const |
Definition at line 49 of file MonotonicClock.cpp.
Referenced by dtn::utils::Clock::getMonotonicTimestamp().
|
static |
Definition at line 78 of file MonotonicClock.cpp.
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), get(), MonotonicClock(), dtn::daemon::DTNTPWorker::raiseEvent(), ibrcommon::TimeMeasurement::start(), and ibrcommon::TimeMeasurement::stop().
|
static |
Definition at line 87 of file MonotonicClock.cpp.