ndn::time::CustomClock< BaseClock > Class Template Referenceabstract

Class implementing custom system or steady clock behavior. More...

#include <ndn-cxx/util/time-custom-clock.hpp>

+ Inheritance diagram for ndn::time::CustomClock< BaseClock >:

Public Member Functions

virtual ~CustomClock ()=default
 
virtual BaseClock::time_point getNow () const =0
 
virtual std::string getSince () const =0
 
virtual BaseClock::duration toWaitDuration (typename BaseClock::duration d) const =0
 

Detailed Description

template<typename BaseClock>
class ndn::time::CustomClock< BaseClock >

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.

Constructor & Destructor Documentation

◆ ~CustomClock()

template<typename BaseClock >
virtual ndn::time::CustomClock< BaseClock >::~CustomClock ( )
virtualdefault

Member Function Documentation

◆ getNow()

template<typename BaseClock >
virtual BaseClock::time_point ndn::time::CustomClock< BaseClock >::getNow ( ) const
pure virtual

◆ getSince()

template<typename BaseClock >
virtual std::string ndn::time::CustomClock< BaseClock >::getSince ( ) const
pure virtual

◆ toWaitDuration()

template<typename BaseClock >
virtual BaseClock::duration ndn::time::CustomClock< BaseClock >::toWaitDuration ( typename BaseClock::duration  d) const
pure virtual