rippled
Public Types | Public Member Functions | Static Public Attributes | List of all members
ripple::SNTPClock Class Referenceabstract

A clock based on system_clock and adjusted for SNTP. More...

Inheritance diagram for ripple::SNTPClock:
Inheritance graph
[legend]
Collaboration diagram for ripple::SNTPClock:
Collaboration graph
[legend]

Public Types

using rep = typename std::chrono::system_clock ::rep
 
using period = typename std::chrono::system_clock ::period
 
using duration = typename std::chrono::system_clock ::duration
 
using time_point = typename std::chrono::system_clock ::time_point
 
using clock_type = std::chrono::system_clock
 

Public Member Functions

virtual void run (std::vector< std::string > const &servers)=0
 
virtual duration offset () const =0
 
virtual time_point now () const=0
 Returns the current time. More...
 

Static Public Attributes

static const bool is_steady
 

Detailed Description

A clock based on system_clock and adjusted for SNTP.

Definition at line 33 of file SNTPClock.h.

Member Typedef Documentation

◆ rep

Definition at line 60 of file abstract_clock.h.

◆ period

Definition at line 61 of file abstract_clock.h.

◆ duration

Definition at line 62 of file abstract_clock.h.

◆ time_point

Definition at line 63 of file abstract_clock.h.

◆ clock_type

Definition at line 64 of file abstract_clock.h.

Member Function Documentation

◆ run()

virtual void ripple::SNTPClock::run ( std::vector< std::string > const &  servers)
pure virtual

Implemented in ripple::SNTPClientImp.

◆ offset()

virtual duration ripple::SNTPClock::offset ( ) const
pure virtual

Implemented in ripple::SNTPClientImp.

◆ now()

virtual time_point beast::abstract_clock< std::chrono::system_clock >::now ( ) const
pure virtualinherited

Returns the current time.

Member Data Documentation

◆ is_steady

const bool beast::abstract_clock< std::chrono::system_clock >::is_steady
staticinherited

Definition at line 66 of file abstract_clock.h.