22#ifndef NDN_CXX_UTIL_TIME_CUSTOM_CLOCK_HPP
23#define NDN_CXX_UTIL_TIME_CUSTOM_CLOCK_HPP
37template<
typename BaseClock>
44 virtual typename BaseClock::time_point
50 virtual typename BaseClock::duration
64setCustomClocks(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.