Class implementing custom system or steady clock behavior. More...
#include <time-custom-clock.hpp>
Public Member Functions | |
virtual | ~CustomClock () |
virtual BaseClock::time_point | getNow () const =0 |
virtual std::string | getSince () const =0 |
virtual boost::posix_time::time_duration | toPosixDuration (const typename BaseClock::duration &duration) const =0 |
Class implementing custom system or steady clock behavior.
Instance of specialization of this class may be passed to setCustomClocks() free function in order to change global behavior of system or steady clock.
Definition at line 37 of file time-custom-clock.hpp.
|
inlinevirtual |
Definition at line 40 of file time-custom-clock.hpp.
References ndn::time::CustomClock< BaseClock >::getNow(), ndn::time::CustomClock< BaseClock >::getSince(), and ndn::time::CustomClock< BaseClock >::toPosixDuration().
|
pure virtual |
Implemented in ndn::time::UnitTestClock< BaseClock >.
Referenced by ndn::time::CustomClock< BaseClock >::~CustomClock().
|
pure virtual |
Implemented in ndn::time::UnitTestClock< BaseClock >.
Referenced by ndn::time::CustomClock< BaseClock >::~CustomClock().
|
pure virtual |
Implemented in ndn::time::UnitTestClock< BaseClock >.
Referenced by ndn::time::CustomClock< BaseClock >::~CustomClock().