xrpld
Loading...
Searching...
No Matches
ManualTimeKeeper.h
1#pragma once
2
3#include <xrpld/core/TimeKeeper.h>
4
5#include <atomic>
6
7namespace xrpl::test {
8
10{
11private:
13
14public:
15 ManualTimeKeeper() = default;
16
17 [[nodiscard]] time_point
18 now() const override
19 {
20 return now_.load();
21 }
22
23 void
25 {
26 now_.store(now);
27 }
28};
29
30} // namespace xrpl::test
Manages various times used by the server.
Definition TimeKeeper.h:12
time_point now() const override
Returns the current time.
std::atomic< time_point > now_