22 #ifndef NDN_CXX_UTIL_TIME_CUSTOM_CLOCK_HPP
23 #define NDN_CXX_UTIL_TIME_CUSTOM_CLOCK_HPP
37 template<
typename BaseClock>
44 virtual typename BaseClock::time_point
64 setCustomClocks(std::shared_ptr<CustomSteadyClock> steadyClock =
nullptr,
65 std::shared_ptr<CustomSystemClock> systemClock =
nullptr);
Class implementing custom system or steady clock behavior.
virtual ~CustomClock()=default
virtual BaseClock::duration toWaitDuration(typename BaseClock::duration d) const =0
virtual std::string getSince() const =0
virtual BaseClock::time_point getNow() const =0
void setCustomClocks(std::shared_ptr< CustomSteadyClock > steadyClock=nullptr, std::shared_ptr< CustomSystemClock > systemClock=nullptr)
Set custom system and steady clocks.
::boost::chrono::duration< Rep, Period > duration