10#ifndef ZEP_TIMESTAMP_INTERFACE_HPP_
11#define ZEP_TIMESTAMP_INTERFACE_HPP_
25 using Rep = std::uint64_t;
40 virtual void GetRatio(std::intmax_t& numerator,
41 std::intmax_t& denominator)
const noexcept = 0;
85 Rep& timestamp)
const noexcept = 0;
Interface to timestamp management functions.
Definition TimestampInterface.hpp:20
virtual bool GetCurrentTimestamp(Rep ×tamp) const noexcept=0
Get the current timestamp value by calculation.
virtual virtual bool bool ConvertToClock(Rep timestamp, ClockRep &clock) const noexcept=0
Convert timestamp to clock value.
virtual void SetCurrentTimestamp(Rep timestamp) noexcept=0
Notify the current timestamp value.
virtual void GetRatio(std::intmax_t &numerator, std::intmax_t &denominator) const noexcept=0
using ClockRep = std::uint64_t;
virtual virtual bool bool ConvertFromClock(ClockRep clock, Rep ×tamp) const noexcept=0
Convert clock value to timestamp.
std::uint64_t Rep
Integer type used to represent timestamps.
Definition TimestampInterface.hpp:25
std::uint64_t ClockRep
integer type used to represent the clock
Definition TimestampInterface.hpp:29
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19