|
rippled
|
#include <ManualTimeKeeper.h>


Public Types | |
| using | rep = typename Clock::rep |
| using | period = typename Clock::period |
| using | duration = typename Clock::duration |
| using | time_point = typename Clock::time_point |
| using | clock_type = NetClock |
Public Member Functions | |
| ManualTimeKeeper ()=default | |
| time_point | now () const override |
| Returns the current time. | |
| void | set (time_point now) |
| time_point | closeTime () const |
| Returns the predicted close time, in network time. | |
| std::chrono::seconds | closeOffset () const |
| std::chrono::seconds | adjustCloseTime (std::chrono::seconds by) |
| Adjust the close time, based on the network's view of time. | |
Static Public Attributes | |
| static bool const | is_steady |
Static Private Member Functions | |
| static constexpr time_point | adjust (std::chrono::system_clock::time_point when) |
Private Attributes | |
| std::atomic< time_point > | now_ {} |
| std::atomic< std::chrono::seconds > | closeOffset_ {} |
Definition at line 10 of file ManualTimeKeeper.h.
|
inherited |
Definition at line 37 of file abstract_clock.h.
|
inherited |
Definition at line 38 of file abstract_clock.h.
|
inherited |
Definition at line 39 of file abstract_clock.h.
|
inherited |
Definition at line 40 of file abstract_clock.h.
|
inherited |
Definition at line 41 of file abstract_clock.h.
|
default |
|
overridevirtual |
Returns the current time.
Implements beast::abstract_clock< NetClock >.
Definition at line 19 of file ManualTimeKeeper.h.
| void xrpl::test::ManualTimeKeeper::set | ( | time_point | now | ) |
Definition at line 25 of file ManualTimeKeeper.h.
|
staticconstexprprivateinherited |
Definition at line 18 of file TimeKeeper.h.
|
inherited |
Returns the predicted close time, in network time.
The predicted close time represents the notional "center" of the network. Each server assumes that its clock is correct and tries to pull the close time towards its measure of network time.
Definition at line 55 of file TimeKeeper.h.
|
inherited |
Definition at line 62 of file TimeKeeper.h.
|
inherited |
Adjust the close time, based on the network's view of time.
Definition at line 69 of file TimeKeeper.h.
|
private |
Definition at line 13 of file ManualTimeKeeper.h.
|
privateinherited |
Definition at line 14 of file TimeKeeper.h.
|
staticinherited |
Definition at line 43 of file abstract_clock.h.