IBR-DTN
1.0.0
|
#include <WallClock.h>
Public Member Functions | |
WallClock (const dtn::data::Timeout &frequency) | |
virtual | ~WallClock () |
void | sync () |
virtual size_t | timeout (ibrcommon::Timer *) |
virtual const std::string | getName () const |
![]() | |
IntegratedComponent () | |
virtual | ~IntegratedComponent () |
virtual void | initialize () throw () |
virtual void | startup () throw () |
virtual void | terminate () throw () |
![]() | |
virtual | ~Component ()=0 |
Protected Member Functions | |
virtual void | componentUp () throw () |
virtual void | componentDown () throw () |
Definition at line 35 of file WallClock.h.
dtn::core::WallClock::WallClock | ( | const dtn::data::Timeout & | frequency | ) |
Constructor for the global Clock
frequency | Specify the frequency for the clock tick in seconds. |
Definition at line 32 of file WallClock.cpp.
|
virtual |
Definition at line 36 of file WallClock.cpp.
|
protectedvirtual |
Implements dtn::daemon::IntegratedComponent.
Definition at line 67 of file WallClock.cpp.
|
protectedvirtual |
Implements dtn::daemon::IntegratedComponent.
Definition at line 50 of file WallClock.cpp.
|
virtual |
Implements dtn::daemon::Component.
Definition at line 88 of file WallClock.cpp.
void dtn::core::WallClock::sync | ( | ) |
Blocks until the next clock tick happens.
Definition at line 40 of file WallClock.cpp.
|
virtual |
timer callback method
Definition at line 72 of file WallClock.cpp.
References dtn::data::SDNV< E >::get(), dtn::utils::Clock::getMonotonicTimestamp(), dtn::utils::Clock::getTime(), dtn::core::TimeEvent::raise(), and dtn::core::TIME_SECOND_TICK.