36 set_seconds_since_epoch(seconds_since_epoch);
60 return microseconds_since_epoch_;
68 return static_cast<float_t>(microseconds_since_epoch_) / 1000000.0f;
76 microseconds_since_epoch_ = us;
84 microseconds_since_epoch_ =
static_cast<size_t>(seconds * 1000000.0f);
118 other.microseconds_since_epoch_);
127 return microseconds_since_epoch_ == other.microseconds_since_epoch_;
143 return microseconds_since_epoch_ < other.microseconds_since_epoch_;
152 return microseconds_since_epoch_ > other.microseconds_since_epoch_;
161 return microseconds_since_epoch_ <= other.microseconds_since_epoch_;
170 return microseconds_since_epoch_ >= other.microseconds_since_epoch_;
179 return std::to_string(seconds_since_epoch()) +
"s since epoch";
187 std::string
format(
const std::string&)
const {
bool operator!=(const TimePoint &other) const
时间点不等比较
TimePoint & operator=(TimePoint &&)=delete
TimePoint(float_t seconds_since_epoch)
从浮点数秒构造函数
std::string to_string() const
转换为字符串表示
TimePoint(const TimePoint &)=delete
bool operator==(const TimePoint &other) const
时间点相等比较
bool operator>=(const TimePoint &other) const
时间点大于等于比较
TimePoint(TimePoint &&)=delete
void set_microseconds_since_epoch(size_t us)
设置从纪元开始的微秒数
bool operator<(const TimePoint &other) const
时间点小于比较
bool operator>(const TimePoint &other) const
时间点大于比较
float_t seconds_since_epoch() const
获取从纪元开始的秒数
bool operator<=(const TimePoint &other) const
时间点小于等于比较
TimePoint & operator=(const TimePoint &)=delete
TimeDuration operator-(const TimePoint &other) const
时间点减法运算(计算时间差)
size_t microseconds_since_epoch() const
获取从纪元开始的微秒数
std::string format(const std::string &) const
格式化时间输出
void set_seconds_since_epoch(float_t seconds)
设置从纪元开始的秒数
XCAL_API const char * to_string(xcal::camera::CameraType type)
#define XCAL_PROPERTY_TYPE(type)