rippled
Loading...
Searching...
No Matches
ManualTimeKeeper.h
1#pragma once
2
3#include <xrpld/core/TimeKeeper.h>
4
5#include <atomic>
6
7namespace xrpl {
8namespace test {
9
11{
12private:
14
15public:
16 ManualTimeKeeper() = default;
17
19 now() const override
20 {
21 return now_.load();
22 }
23
24 void
26 {
27 now_.store(now);
28 }
29};
30
31} // namespace test
32} // namespace xrpl
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_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5