22 #ifndef NDN_UTIL_TIME_CUSTOM_CLOCK_HPP 23 #define NDN_UTIL_TIME_CUSTOM_CLOCK_HPP 36 template<
typename BaseClock>
43 virtual typename BaseClock::time_point
49 virtual typename BaseClock::duration
64 shared_ptr<CustomSystemClock> systemClock =
nullptr);
69 #endif // NDN_UTIL_TIME_CUSTOM_CLOCK_HPP Copyright (c) 2013-2017 Regents of the University of California.
virtual BaseClock::time_point getNow() const =0
virtual BaseClock::duration toWaitDuration(typename BaseClock::duration d) const =0
virtual std::string getSince() const =0
Class implementing custom system or steady clock behavior.
void setCustomClocks(shared_ptr< CustomSteadyClock > steadyClock=nullptr, shared_ptr< CustomSystemClock > systemClock=nullptr)
Set custom system and steady clocks.
virtual ~CustomClock()=default