10#ifndef ZEP_TIMESTAMP_INTERFACE_HPP_
11#define ZEP_TIMESTAMP_INTERFACE_HPP_
20class TimestampInterface {
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
現在のタイムスタンプ値を計算して取得する。
virtual void SetCurrentTimestamp(Rep timestamp) noexcept=0
現在のタイムスタンプ値を通知する。
virtual bool ConvertFromClock(ClockRep clock, Rep ×tamp) const noexcept=0
クロック値をタイムスタンプに変換する。
virtual void GetRatio(std::intmax_t &numerator, std::intmax_t &denominator) const noexcept=0
進み具合(1秒に対する比率)を取得する。
virtual bool ConvertToClock(Rep timestamp, ClockRep &clock) const noexcept=0
タイムスタンプをクロック値に変換する。
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