Details
Description
The LogicalTime class contains the time and defines the operations allowed with this time.
class LogicalTime {
|
public:
|
LogicalTime();
|
LogicalTime(Timestamp);
|
|
LogicalTime(const LogicalTime&) = default;
|
LogicalTime(LogicalTime&&) = default;
|
|
LogicalTime& operator=(const LogicalTime&) = default;
|
LogicalTime& operator=(LogicalTime&&) = default;
|
|
|
Timestamp asTimestamp() const;
|
|
// increments the clock
|
void addTicks(unsigned ticks);
|
std::string toString() const;
|
|
|
private:
|
uint64_t _time{0};
|
};
|
Add unit tests to validate the API
Attachments
Issue Links
- is duplicated by
-
SERVER-27717 Implement Logical Time
-
- Closed
-